Asp.net WebService无法通过IIS与其他WS进行通信,但可以通过VisualStudio进行通信
首先欢迎,因为这是我的第一篇文章。 我开发了WebService(.net4.0),它连接到另外两个WebService。其中一个是外部的,第二个是内部的,但位于另一台服务器上 在VisualStudio中开发时,通信是完美的,一切都很好——我的WS和另外两个WS。但当我将WS移动到服务器上的IIS时,我收到了一个问题:Asp.net WebService无法通过IIS与其他WS进行通信,但可以通过VisualStudio进行通信,asp.net,.net,web-services,visual-studio-2010,iis,Asp.net,.net,Web Services,Visual Studio 2010,Iis,首先欢迎,因为这是我的第一篇文章。 我开发了WebService(.net4.0),它连接到另外两个WebService。其中一个是外部的,第二个是内部的,但位于另一台服务器上 在VisualStudio中开发时,通信是完美的,一切都很好——我的WS和另外两个WS。但当我将WS移动到服务器上的IIS时,我收到了一个问题: There was no endpoint listening at <<<url>>> that could accept the mes
There was no endpoint listening at <<<url>>> that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
为了传递更多信息-WS托管在IIS 6.1上。我为此创建了新的应用程序池
你能帮我个忙吗?我的问题是我们公司网络上的代理服务器。我必须在我的web.config中明确地说明它,它工作得很好 以下是我添加到web.config的内容:
<system.net>
<defaultProxy>
<proxy
proxyaddress="http://webproxy.mycompany.com:8080"
bypassonlocal="true"
/>
</defaultProxy>
</system.net>
让我困惑的是,如果没有上面的声明,当它由VisualStudioDevelopmentServer托管时,它工作得很好,但在IIS上却没有。没关系,我现在可以用了
<system.net>
<defaultProxy>
<proxy
proxyaddress="http://webproxy.mycompany.com:8080"
bypassonlocal="true"
/>
</defaultProxy>
</system.net>