Server Error in '/' Application.

Could not find a part of the path 'D:\HTTP\MattFirm2.0\mf\Web.sitemap'.

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.DirectoryNotFoundException: Could not find a part of the path 'D:\HTTP\MattFirm2.0\mf\Web.sitemap'.

Source Error:


Line 16:         StringBuilder sb = new StringBuilder();
Line 17:         DataSet ds = new DataSet();
Line 18:         ds.ReadXml(HttpContext.Current.Server.MapPath(HttpContext.Current.Session["virtualDir"].ToString() + "Web.sitemap"));
Line 19: 
Line 20:         DataRow[] shop = ds.Tables[0].Select("resourceKey = 'shop'");

Source File: d:\HTTP\MattFirm2.0\App_Code\pageNav.cs    Line: 18

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'D:\HTTP\MattFirm2.0\mf\Web.sitemap'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2013856
   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) +998
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +113
   System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +78
   System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +51
   System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +44
   System.Threading.CompressedStack.runTryCode(Object userData) +54
   System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
   System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +174
   System.Xml.XmlTextReaderImpl.OpenUrl() +199
   System.Xml.XmlTextReaderImpl.Read() +50
   System.Xml.XmlTextReader.Read() +12
   System.Xml.XmlReader.MoveToContent() +70
   System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving) +196
   System.Data.DataSet.ReadXml(String fileName) +62
   pageNav.makeMainNavDropDowns() in d:\HTTP\MattFirm2.0\App_Code\pageNav.cs:18
   publicMaster.Page_Init(Object sender, EventArgs e) in d:\HTTP\MattFirm2.0\public.master.cs:78
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnInit(EventArgs e) +2069676
   System.Web.UI.UserControl.OnInit(EventArgs e) +96
   System.Web.UI.Control.InitRecursive(Control namingContainer) +321
   System.Web.UI.Control.InitRecursive(Control namingContainer) +198
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +692


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42