Saa*_*aab 12 c# wcf wcf-binding
我目前正在开发一个需要与互联网上的Web服务进行通信的应用程序.Internet Explorer直到知道通过代理服务器连接到Internet的唯一应用程序.
代理设置设置为"使用自动配置脚本".
我保留了默认设置
<binding useDefaultWebProxy="true" />
另外设置
<security mode="TransportCredentialOnly">
        <transport clientCredentialType="Windows" proxyCredentialType="Basic"
          realm="" />
        <message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
但没有运气.我一直在"(407)需要代理身份验证".
我做了一些谷歌,但解决方案似乎不适合我的情况.
简短更新:应用程序应使用默认用户凭据运行,并通过NTLM使用这些凭据对代理进行身份验证.但即使我设置客户端这样做,它似乎没有帮助.
保持<binding useDefaultWebProxy="true" />设置,并确保useDefaultCredentials在app.config文件中设置为true(false默认情况下此设置):
<system.net>
    <defaultProxy useDefaultCredentials="true"/>
</system.net>
有关更多信息,请参阅我的博客文章" 使用HTTP代理服务器 ".
| 归档时间: | 
 | 
| 查看次数: | 13299 次 | 
| 最近记录: |