简体   繁体   English

远程服务器返回404

[英]Remote server returned 404

Code

Web.config Web.config文件

<endpoint address="https://localhost/webapi/ProductData.svc/Secured"
          binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IProductData"
          contract="Client.IProductData" name="BasicHttpBinding_IProductDataSecured" />
<endpoint address="https://fow01003.fbce.local/webapi/ProductData.svc"
          binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IProductData1"
          contract="Client.IProductData" name="BasicHttpBinding_IProductData" />

Controller 调节器

client = new ProductDataClient("BasicHttpBinding_IProductData"); //This Works
client.Test(); // This fails

Error messages 错误消息

Exception : There was no endpoint listening at https://fow01003.fbce.local/webapi/ProductData.svc that could accept the message. 例外 :在https://fow01003.fbce.local/webapi/ProductData.svc上没有可以接受该消息的端点监听。 This is often caused by an incorrect address or SOAP action. 这通常是由错误的地址或SOAP操作引起的。 See InnerException, if present, for more details. 有关更多详细信息,请参阅InnerException(如果存在)。

InnerException : "The remote server returned an error: (404) Not Found." InnerException :“远程服务器返回错误:(404)Not Found。”

Problem 问题

As shown above, theres'no endpoint listening. 如上所示,theres'没有端点监听。 However, when I go to https://fow01003.fbce.local/webapi/ProductData.svc it shows me that the service is running and I can check the wsdl which holds all information it should. 但是,当我转到https://fow01003.fbce.local/webapi/ProductData.svc时,它告诉我服务正在运行,我可以检查wsdl,它包含它应该包含的所有信息。

(PS. FOW01003.fbce.local = localhost). (PS.FOW01003.fbce.local = localhost)。

What steps can I take to find what really is going wrong? 我可以采取哪些步骤来找出真正的问题?

Did you already turn on tracing to get more detailed infos about the error? 您是否已启用跟踪以获取有关错误的更详细信息? Configure it at least for the service side (client side would be a good idea, too ;) and you'll probably get some hints on the 404. 至少为服务端配置它(客户端也是一个好主意;)你可能会得到404的一些提示。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 远程服务器返回错误:(404)找不到-HttpWebResponse - The remote server returned an error: (404) Not Found - HttpWebResponse HttpWebRequest引发“ 404远程服务器返回错误:(404)未找到。” - HttpWebRequest throws “The remote server returned an error: (404) Not Found.” for 404 远程服务器返回错误:(404)找不到。 在GetResponse()中 - The remote server returned an error: (404) Not Found. In GetResponse() Picasa API返回“远程服务器返回错误:(404)Not Found。” - Picasa API returns “The remote server returned an error: (404) Not Found.” WebDriverManager - &#39;远程服务器返回错误:(404)未找到。&#39; - WebDriverManager - 'The remote server returned an error: (404) Not Found.' BrowserMob 代理 - 远程服务器返回错误:(404) 未找到 - BrowserMob Proxy - The remote server returned an error: (404) Not Found 远程服务器返回一个错误:(404) Not Found error for API calls after server publish - The remote server returned an error: (404) Not Found error for API calls after server publish 远程服务器返回错误 - The remote server returned an error 远程服务器返回错误:(404)找不到。 使用Facebook图形API时 - The remote server returned an error: (404) Not Found. when using facebook graph api 删除Azure云中的Blob时远程服务器返回错误:(404)找不到 - When Delete the blob in azure cloud The remote server returned an error: (404) Not Found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM