您的位置:首页 > 理论基础 > 计算机网络

请求因 HTTP 状态 404 失败

2008-11-23 01:31 1821 查看
http://localhost:1966/Web/Cart.aspx

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

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

异常详细信息: System.Net.WebException: 请求因 HTTP 状态 404 失败: Not Found。

源错误:

行 49: [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/Pay", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
行 50: public PayResults Pay(string customerId, string customerPassword, int amount) {
行 51: object[] results = this.Invoke("Pay", new object[] {
行 52: customerId,
行 53: customerPassword,

源文件: c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/web/3d1ab783/1259033d/App_WebReferences.w-sseotm.0.cs 行: 51

堆栈跟踪:

[WebException: 请求因 HTTP 状态 404 失败: Not Found。]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +551137
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +204
MyBank.MyBankService.Pay(String customerId, String customerPassword, Int32 amount) in c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/web/3d1ab783/1259033d/App_WebReferences.w-sseotm.0.cs:51
Cart.imgb_Salary_Click(Object sender, ImageClickEventArgs e) in d:/zy/MyBookShop1117/MyBookShop/Web/Cart.aspx.cs:53
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +86
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746

******************************************************
资料:
******************************************************
HTTP 404或Not Found錯誤訊息是HTTP的其中一種「標準回應訊息」(HTTP状态码),此訊息代表客戶端在瀏覽網頁時,伺服器無法正常提供訊息,或是伺服器無法回應且不知原因。404錯誤訊息可能與「server not found」(無法找到伺服器)或其他類似訊息容易產生混淆。

當客戶端使用HTTP瀏覽網頁時,伺服器需要針對不同的「要求」提供不同的「回應」,譬如瀏覽器發出HTML文件(網頁)的要求,並帶有數字回應碼和MIME的訊息。代碼404的第一個「4」代表客戶端的錯誤,如錯誤的網頁位址;後兩的數字碼則代表著特定的錯誤訊息。HTTP的三字元代碼跟早期通訊協定FTP和NNTP的代碼相當類似。

從HTTP的層面來看,404訊息碼之後通常會有一個可讀的訊息「Not Found」[1],許多網路伺服器的預設頁面也都有「404」代碼跟「Not Found」的詞彙。

404錯誤訊息通常是在目標頁面被更動或移除之後顯現的頁面。因為此兩種訊息需要特別架構的伺服器,許多網站並不使用
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐