18720358503 在线客服 人才招聘 返回顶部
企业动态 技术分享 行业动态

无法寻找文档“F:\Web\NewSubWeb\ns\xml\agent.xml”。

2021-03-22分享 "> 对不起,没有下一图集了!">
表明: 实行当今 Web 恳求期内,出現没经解决的出现异常。请查验堆栈追踪信息内容,以掌握相关该不正确及其编码中造成不正确的出處的详尽信息内容。

出现异常详尽信息内容: System.IO.FileNotFoundException: 无法寻找文档“F:\Web\NewSubWeb\ns\xml\agent.xml”。

源不正确:


行 460: string file = p.Server.MapPath( /xml/agent.xml 行 461: System.Xml.XmlDocument xDocument = new System.Xml.XmlDocument(); 行 462: xDocument.Load(file); 行 463: System.Xml.XmlNode xNode = null; 行 464: xNode = xDocument.SelectSingleNode( root/agent [areaid= + areaID + ]
[FileNotFoundException: 无法寻找文档“F:\Web\NewSubWeb\ns\xml\agent.xml”。] System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +519 System.IO.FileStream.Init(String path, FileMode mode, ess 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, ess 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.pressedStack, 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 CommonMethod.GetAgentID(Page p) in f:\Web\SubsiteV3\App_Code\CommonMethod.cs:462 Include_Top.Page_Load(Object sender, EventArgs e) in f:\Web\SubsiteV3\Include\Top.ascx.cs:21 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51 System.Web.UI.Control.OnLoad(EventArgs e) +95 System.Web.UI.Control.LoadRecursive() +59 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678
"> 对不起,没有下一图集了!">
在线咨询