[英]ASP.NET website consuming WCF service error
I get the following error on my asp.net website, while trying to invoke a wcf service method: 尝试调用wcf服务方法时,我在asp.net网站上收到以下错误:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 77.XXX.XX.XX:809
连接尝试失败,因为 一段时间后 连接方未 正确响应,或者建立的连接 失败,因为连接的主机未能响应77.XXX.XX.XX:809
And then more in detail, I get a socketexception, webexception and also this endpointnotfoundexception: 然后更详细地讲,我得到了一个socketexception,webexception以及这个endpointnotfoundexception:
There was no endpoint listening at http://77.XXX.XX.XX:809/RemoteSyncService/ that could accept the message.
在 http://77.XXX.XX.XX:809 / RemoteSyncService /上 没有侦听终结点的端点 可以接受该 消息。 This is often caused by an incorrect address or SOAP action.
这通常是由不正确的地址或SOAP操作引起的。
The wcf service (RemoteSyncService) is hosted in a .net application on the 77.XXX.XX.XX server. wcf服务(RemoteSyncService)托管在77.XXX.XX.XX服务器上的.net应用程序中。 The binding used is basicHttpBinding.
使用的绑定是basicHttpBinding。
The endpoint address, used in the asp.net site web.config is: 在asp.net网站web.config中使用的终结点地址是:
http://77.XXX.XX.XXX:809/RemoteSyncService
// this is the same on the remote server
The service code for the asp.net website was automatically generated, by using the 'add service reference' feature in VS2010 (on this address: http://77.XXX.XX.XXX:809/RemoteSyncService/mexHttp , as described in the other remote server). 通过使用VS2010中的“添加服务引用”功能(位于此地址:http: //77.XXX.XX.XXX : 809/RemoteSyncService/mexHttp) ,自动生成了asp.net网站的服务代码。其他远程服务器)。
All works perfectly on the dev machine.. 所有功能都可以在开发机器上完美运行。
What I tried and works: 我尝试过的工作方式:
Will provide code if needed.. 如果需要,将提供代码。
确保您的生产服务器没有对您进行防火墙。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.