“/”应用程序中的服务器错误。

未能找到路径“c:\xmldata\plist.xml”的一部分。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.IO.DirectoryNotFoundException: 未能找到路径“c:\xmldata\plist.xml”的一部分。

源错误:


行 174:        //xmldoc.Load(@"D:\uweweData\plist.xml");
行 175:       // xmldoc.Load(string.Format(@"{0}{1}", AppDomain.CurrentDomain.BaseDirectory, @"\xmldata\plist.xml"));
行 176:        xmldoc.Load(string.Format(@"{0}", @"\xmldata\plist.xml"));
行 177:        XmlNode root = xmldoc.SelectSingleNode("plist").ChildNodes.Item(0);
行 178:        for (int i = 0; i < root.ChildNodes.Count; i++)

源文件: d:\Site\www.uwewe.com\login.aspx.cs    行: 176

堆栈跟踪:


[DirectoryNotFoundException: 未能找到路径“c:\xmldata\plist.xml”的一部分。]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +281
   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, Int32 bufferSize) +127
   System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) +125
   System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +80
   System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +73
   System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
   System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +116
   System.Xml.XmlTextReaderImpl.OpenUrl() +416
   System.Xml.XmlTextReaderImpl.Read() +300
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +161
   System.Xml.XmlDocument.Load(XmlReader reader) +136
   System.Xml.XmlDocument.Load(String filename) +152
   login.DropData() in d:\Site\www.uwewe.com\login.aspx.cs:176
   login.Page_Load(Object sender, EventArgs e) in d:\Site\www.uwewe.com\login.aspx.cs:27
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1607


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.3928.0