遠端伺服器返回錯誤 404 未找到

2021-05-22 03:27:08 字數 1943 閱讀 5671

說明:執行當前 web 請求期間,出現未處理的異常。請檢查堆疊跟蹤資訊,以了解有關該錯誤以及**中導致錯誤的出處的詳細資訊。

異常詳細資訊:system.net.webexception: 遠端伺服器返回錯誤: (404) 未找到。

源錯誤:

行 20:         public void listallproducts()

行 21:

行 24:

原始檔:h:/lily/work/防潮資訊化/test/artech.petshop/modules/products/products/productspresenter.cs行:22

堆疊跟蹤:

[webexception: 遠端伺服器返回錯誤: (404) 未找到。]

[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.inte***ce.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

遠端伺服器返回錯誤 404 未找到。

乙個採集資料的程式。行 43 webrequest req webrequest.create urls 行 44 httpwebresponse httpreq httpwebresponse req.getresponse 報錯 行 45 stream s httpreq.getresponse...

HTTP 錯誤 404 檔案或目錄未找到

關於win 2003 iis 不支援asp的問題 一步,啟用asp,進入 控制面板 管理工具 iis internet 伺服器 web服務擴充套件 active server pages 允許 控制面板 管理工具 iis internet 伺服器 web服務擴充套件 在服務端的包含檔案 允許 執行....

WCF 遠端伺服器返回錯誤 400 錯誤的請求

wcf restful介面 post方式呼叫報錯 遠端伺服器返回錯誤 400 錯誤的請求 wcf rest 不使用uritemplate使用post方式傳參解決http400問題以及引數對映問題 等等!標記自己遇到的問題原因,描述如下 伺服器介面 webinvoke method requestfo...