[an error occurred while processing this directive]
следует использовать FlushFileBuffer (это из Help).