Server Error in '/' Application.

The process cannot access the file 'C:\inetpub\wwwroot\SPA\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\SPA\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\d45db29e\60684af7\App_Web_rxiusjtk.3.cs    Line: 0

Stack Trace:


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

[ConfigurationErrorsException: The XML sitemap config file web.sitemap could not be loaded.  The process cannot access the file 'C:\inetpub\wwwroot\SPA\web.sitemap' because it is being used by another process.]
   System.Web.XmlSiteMapProvider.BuildSiteMap() +2131
   System.Web.StaticSiteMapProvider.FindSiteMapNode(String rawUrl) +151
   System.Web.XmlSiteMapProvider.FindSiteMapNode(String rawUrl) +45
   System.Web.SiteMapProvider.FindSiteMapNode(HttpContext context) +72
   System.Web.SiteMapProvider.get_CurrentNode() +70
   System.Web.XmlSiteMapProvider.get_CurrentNode() +11
   System.Web.UI.WebControls.SiteMapPath.CreateControlHierarchy() +81
   System.Web.UI.WebControls.SiteMapPath.CreateChildControls() +50
   System.Web.UI.Control.EnsureChildControls() +107
   System.Web.UI.Control.PreRenderRecursiveInternal() +58
   System.Web.UI.Control.PreRenderRecursiveInternal() +227
   System.Web.UI.Control.PreRenderRecursiveInternal() +227
   System.Web.UI.Control.PreRenderRecursiveInternal() +227
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +9238
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +355
   System.Web.UI.Page.ProcessRequest() +79
   System.Web.UI.Page.ProcessRequest(HttpContext context) +74
   ASP.user_panel_userview_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\d45db29e\60684af7\App_Web_rxiusjtk.3.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +542
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


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