Server Error in '/' Application.

The process cannot access the file 'D:\InetPub\vhosts\egyco-209.package\egyco-egypt.com\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 'D:\InetPub\vhosts\egyco-209.package\egyco-egypt.com\wwwroot\web.sitemap' because it is being used by another process.

Source Error:


[No relevant source lines]

Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\fe32c97e\5ff5a1fb\App_Web_vtdcmgr0.0.cs    Line: 0

Stack Trace:


[IOException: The process cannot access the file 'D:\InetPub\vhosts\egyco-209.package\egyco-egypt.com\wwwroot\web.sitemap' because it is being used by another process.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +1020
   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) +1017
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +67
   System.Web.Hosting.MapPathBasedVirtualFile.Open() +76
   System.Web.Hosting.VirtualPathProvider.OpenFile(String virtualPath) +31
   System.Web.XmlSiteMapProvider.BuildSiteMap() +175

[ConfigurationErrorsException: The XML sitemap config file web.sitemap could not be loaded.  The process cannot access the file 'D:\InetPub\vhosts\egyco-209.package\egyco-egypt.com\wwwroot\web.sitemap' because it is being used by another process.]
   System.Web.XmlSiteMapProvider.BuildSiteMap() +553
   System.Web.StaticSiteMapProvider.FindSiteMapNode(String rawUrl) +142
   System.Web.XmlSiteMapProvider.FindSiteMapNode(String rawUrl) +38
   System.Web.UI.WebControls.SiteMapDataSource.GetNodes() +195
   System.Web.UI.WebControls.SiteMapDataSource.GetTreeView(String viewPath) +36
   System.Web.UI.WebControls.SiteMapDataSource.GetHierarchicalView(String viewPath) +30
   System.Web.UI.HierarchicalDataSourceControl.System.Web.UI.IHierarchicalDataSource.GetHierarchicalView(String viewPath) +9
   System.Web.UI.WebControls.HierarchicalDataBoundControl.GetData(String viewPath) +25
   System.Web.UI.WebControls.Menu.DataBindItem(MenuItem item) +50
   System.Web.UI.WebControls.Menu.PerformDataBinding() +123
   System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect() +107
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +71
   System.Web.UI.WebControls.Menu.DataBind() +4
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +93
   System.Web.UI.WebControls.Menu.EnsureDataBound() +34
   System.Web.UI.WebControls.Menu.OnPreRender(EventArgs e) +24
   System.Web.UI.Control.PreRenderRecursiveInternal() +166
   System.Web.UI.Control.PreRenderRecursiveInternal() +236
   System.Web.UI.Control.PreRenderRecursiveInternal() +236
   System.Web.UI.Control.PreRenderRecursiveInternal() +236
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5979
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +250
   System.Web.UI.Page.ProcessRequest() +73
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +23
   System.Web.UI.Page.ProcessRequest(HttpContext context) +112
   ASP.depdetails_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\fe32c97e\5ff5a1fb\App_Web_vtdcmgr0.0.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +814
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +132
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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