Server Error in '/' Application.

The process cannot access the file 'D:\WB3\nbrm_web\datasource\navstructure.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 'D:\WB3\nbrm_web\datasource\navstructure.xml' because it is being used by another process.

Source Error:


Line 1:  <%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" Inherits="Nextsense.Web.CMS.Render.CmsBasePage" %>

Source File: d:\WB3\nbrm_web\default.aspx    Line: 1

Stack Trace:


[IOException: The process cannot access the file 'D:\WB3\nbrm_web\datasource\navstructure.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, Int32 bufferSize) +63
   System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) +73
   System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +69
   System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +54
   System.Threading.CompressedStack.runTryCode(Object userData) +70
   System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
   System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +92
   System.Xml.XmlTextReaderImpl.OpenUrl() +128
   System.Xml.XmlTextReaderImpl.Read() +223
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +112
   System.Xml.XmlDocument.Load(XmlReader reader) +107
   System.Xml.XmlDocument.Load(String filename) +122
   Nextsense.Web.CMS.Utils.LoadDataSource(String fileName) in c:\Projects\wb3\Utils\Utils.cs:400
   Nextsense.Web.CMS.Data.XmlProvider..ctor() in c:\Projects\wb3\XmlProvider\XmlProvider.cs:31
   Nextsense.Web.CMS.Provider.CmsProvider.GetDbProvider() in c:\Projects\wb3\Provider\CmsProvider.cs:45
   Nextsense.Web.CMS.Provider.CmsProvider.GetRenderNode() in c:\Projects\wb3\Provider\CmsProvider.cs:196
   Nextsense.Web.CMS.Render.CmsBasePage.InitializeCulture() in c:\Projects\wb3\Render\CmsBasePage.cs:33
   ASP.default_aspx.__BuildControlTree(default_aspx __ctrl) in d:\WB3\nbrm_web\default.aspx:1
   ASP.default_aspx.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\5fa91b8e\93f0a627\App_Web_cwk2x450.0.cs:0
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +48
   System.Web.UI.Page.ProcessRequest() +72
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +22
   System.Web.UI.Page.ProcessRequest(HttpContext context) +58
   ASP.default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\5fa91b8e\93f0a627\App_Web_cwk2x450.0.cs:0
   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.4081.0