Server Error in '/' Application.

The process cannot access the file 'C:\inetpub\wwwroot\web.sitemap' 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\web.sitemap' because it is being used by another process.

Source Error:


[No relevant source lines]

Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e22c2559\92c7e946\App_Web_gazetteresolution.aspx.8b597557.qj31vine.0.cs    Line: 0

Stack Trace:


[IOException: The process cannot access the file 'C:\inetpub\wwwroot\web.sitemap' because it is being used by another process.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +893
   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) +1217
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +123
   System.Web.Hosting.MapPathBasedVirtualFile.Open() +104
   System.Web.XmlSiteMapProvider.BuildSiteMap() +217

[ConfigurationErrorsException: The XML sitemap config file web.sitemap could not be loaded.  The process cannot access the file 'C:\inetpub\wwwroot\web.sitemap' because it is being used by another process.]
   System.Web.XmlSiteMapProvider.BuildSiteMap() +1902
   System.Web.StaticSiteMapProvider.FindSiteMapNode(String rawUrl) +145
   System.Web.XmlSiteMapProvider.FindSiteMapNode(String rawUrl) +44
   System.Web.SiteMapProvider.FindSiteMapNode(HttpContext context) +70
   System.Web.SiteMapProvider.get_CurrentNode() +70
   System.Web.XmlSiteMapProvider.get_CurrentNode() +10
   System.Web.UI.WebControls.SiteMapPath.CreateControlHierarchy() +78
   System.Web.UI.WebControls.SiteMapPath.CreateChildControls() +50
   System.Web.UI.Control.EnsureChildControls() +106
   System.Web.UI.Control.PreRenderRecursiveInternal() +66
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +9381
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +345
   System.Web.UI.Page.ProcessRequest() +75
   System.Web.UI.Page.ProcessRequest(HttpContext context) +70
   ASP.user_panel_gazetteresolution_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e22c2559\92c7e946\App_Web_gazetteresolution.aspx.8b597557.qj31vine.0.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


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