远程服务器返回错误-404-未找到
目录
远程服务器返回错误: (404) 未找到
“/”应用程序中的服务器错误。 —
远程服务器返回错误: (404) 未找到。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Net.WebException: 远程服务器返回错误: (404) 未找到。
源错误:
行 20: public void ListAllProducts() 行 21: { 行 22: this.View.BindAllProducts(this._productService.GetAllProducts()); 行 23: } 行 24: |
源文件: H:/lily/work/防潮信息化/Test/Artech.PetShop/Modules/Products/Products/ProductsPresenter.cs 行: 22
堆栈跟踪:
[WebException: 远程服务器返回错误: (404) 未找到。] System.Net.HttpWebRequest.GetResponse() +5314029 System.ServiceModel.Channels.HttpChannelRequest.WaitForReply(TimeSpan timeout) +54 [EndpointNotFoundException: 没有终结点在侦听可以接受消息的 http://localhost/PetShop/Products/productservice.svc。这通常是由于不正确的地址或者 SOAP 操作导致的。如果存在此情况,请参阅 InnerException 以了解详细信息。] System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +7596735 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +275 Artech.PetShop.Products.Service.Interface.IProductService.GetAllProducts() +0 Artech.PetShop.Orders.ProductsPresenter.ListAllProducts() in H:/../Test/Artech.PetShop/Modules/Products/Products/ProductsPresenter.cs:22 PetShop._Default.Page_Load(Object sender, EventArgs e) in H:/../Test/Artech.PetShop/PetShop/Default.aspx.cs:23 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627 |
版本信息: Microsoft .NET Framework 版本:2.0.50727.3603; ASP.NET 版本:2.0.50727.3082