Server Error in '/' Application.

Could not find file 'd:\web\localuser\netbike.dk\public_html\App_Data\styrbaand.xml'.

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.FileNotFoundException: Could not find file 'd:\web\localuser\netbike.dk\public_html\App_Data\styrbaand.xml'.

Source Error:


Line 44:         {
Line 45:             XmlDocument xmlVarer = new XmlDocument();
Line 46:             xmlVarer.Load(Server.MapPath("~/App_Data/Vareliste.xml"));
Line 47:             string strDs;
Line 48: 

Source File: d:\web\localuser\netbike.dk\public_html\visVarer.aspx.cs    Line: 46

Stack Trace:


[FileNotFoundException: Could not find file 'd:\web\localuser\netbike.dk\public_html\App_Data\styrbaand.xml'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +12796926
   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) +738
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +66
   System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) +82
   System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +73
   System.Xml.XmlTextReaderImpl.OpenAndPush(Uri uri) +177
   System.Xml.XmlTextReaderImpl.PushExternalEntityOrSubset(String publicId, String systemId, Uri baseUri, String entityName) +174
   System.Xml.XmlTextReaderImpl.PushExternalEntity(IDtdEntityInfo entity) +128
   System.Xml.XmlTextReaderImpl.HandleGeneralEntityReference(String name, Boolean isInAttributeValue, Boolean pushFakeEntityIfNullResolver, Int32 entityStartLinePos) +938
   System.Xml.XmlTextReaderImpl.ResolveEntity() +149
   System.Xml.XmlLoader.LoadEntityReferenceNode(Boolean direct) +115
   System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) +5382224
   System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +21
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +133
   System.Xml.XmlDocument.Load(XmlReader reader) +109
   System.Xml.XmlDocument.Load(String filename) +128
   visVarer.VisKategori(String kategori, String underKategori, String underKategori2, String vareNr) in d:\web\localuser\netbike.dk\public_html\visVarer.aspx.cs:46
   visVarer.Page_Load(Object sender, EventArgs e) in d:\web\localuser\netbike.dk\public_html\visVarer.aspx.cs:32
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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