Server Error in '/' Application.

The process cannot access the file 'C:\inetpub\wwwroot\rss\xml\news_1_CZ.xml' because it is being used by another process.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.IOException: The process cannot access the file 'C:\inetpub\wwwroot\rss\xml\news_1_CZ.xml' because it is being used by another process.

Source Error:


Line 52:         context.Response.ContentType = "text/xml"
Line 53:         'context.Response.ContentEncoding = System.Text.Encoding.UTF8
Line 54:         context.Response.TransmitFile( fileName )
Line 55:         context.Response.End()
Line 56: 				

Source File: C:\inetpub\wwwroot\rss\default.ashx    Line: 54

Stack Trace:


[IOException: The process cannot access the file 'C:\inetpub\wwwroot\rss\xml\news_1_CZ.xml' because it is being used by another process.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +372
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +776
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +65
   System.Web.HttpResponse.TransmitFile(String filename, Int64 offset, Int64 length) +126
   System.Web.HttpResponse.TransmitFile(String filename) +21
   RssHandler.ProcessRequest(HttpContext context) in C:\inetpub\wwwroot\rss\default.ashx:54
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +188
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +71


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3930.0