Visual Studio 2010添加服务引用(WCF)“代理验证”(407)

时间:2013-05-01 09:39:21

标签: visual-studio-2010 wcf iis wcf-client

我在使用.NET 4.0,VS2010和WCF向示例客户端项目添加服务引用时遇到问题。

WCF服务部署到IIS(目前为6),我可以在http://myServer.myDomain.net:8083/myService/actualService.svc?wsdl浏览IE中MEX端点暴露的WSDL;但是当我尝试“添加服务引用”并将其指向上述地址时 - 我在VS中收到以下错误:

以下是错误

Metadata contains a reference that cannot be resolved: 'http://myServer.myDomain.net:8083/myService/actualService.svc?wsdl'.
The remote server returned an unexpected response: (407) Proxy Authentication Required.
The remote server returned an error: (407) Proxy Authentication Required.
If the service is defined in the current solution, try building the solution and adding the service reference again.

该服务配置为拒绝匿名访问,所以我猜我需要VS才能提供我的凭据,然后才能让我看到MEX / WSDL。

我用Google搜索了一下,发现人们一直在尝试这样的事情:

<system.net>
  <defaultProxy useDefaultCredentials="true" />
</system.net>

但这似乎对我没什么影响,我也尝试确保将Web服务的URL配置为在IE设置中被绕过。

有什么想法吗?当您想要使用Web服务并编写代码时非常烦人。

由于 皮特

0 个答案:

没有答案