'/' 應用程式中發生伺服器錯誤。

遠端伺服器傳回一個錯誤: (404) 找不到。

描述: 在執行目前 Web 要求的過程中發生未處理的例外狀況。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外狀況詳細資訊: System.Net.WebException: 遠端伺服器傳回一個錯誤: (404) 找不到。

原始程式錯誤:


行 141:            //20180920 透過https取得xml會導致無法解析,暫時以http方式取得,不影響原有功能
行 142:            XmlDocument xml = new XmlDocument();
行 143:            xml.Load("http://www.104.com.tw/i/apis/jobsearch.cfm?c=383a44293c5c3f225a583b1d1d1d1d5f2443a363189j56&fmt=4");
行 144:            XmlNodeList job = xml.SelectNodes("//ITEM");
行 145:

原始程式檔: c:\inetpub\YY2016\es-ES\HR.aspx.cs    行: 143

堆疊追蹤:


[WebException: 遠端伺服器傳回一個錯誤: (404) 找不到。]
   System.Net.HttpWebRequest.GetResponse() +1751
   System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) +130
   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
   YY2016.es_ES.HR.Page_Load(Object sender, EventArgs e) in c:\inetpub\YY2016\es-ES\HR.aspx.cs:143
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


版本資訊: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4700.0