连接到安全模式=“无”的 basicHttpBinding 端点时出现问题
尝试创建由完全未经身份验证的 IIS (6) 托管的框架 4.0 WCF basicHttp 服务。部署后,我可以通过浏览器成功检索 WSDL。
但是,每当我尝试通过 WCF 测试客户端或通过 Visual Studio 生成的代理连接到它时,我都会收到“服务器已拒绝客户端凭据。”。
当我添加
时,这种情况仍然发生,但我的理解是,无论如何,这是默认的...
在 IIS 虚拟目录属性中,我只勾选了匿名,并在 web.config 文件中设置
。
有什么想法吗?
Trying to create an framework 4.0 WCF basicHttp service hosted by IIS (6) that is completely unauthenticated. Once deployed, I can successfully retrive the WSDL via a browser.
However whenever I try and connect to it via WCF Test Client or via a visual studio generated proxy, I'm getting "The server has rejected the client credentials.".
This still occurs when I add <security mode="None"/>
, but my understanding is that this is the default anyway ...
In the IIS virtual directory properties I only have anonymous ticked, and in the web.config file <authentication mode="None"/>
is set as well.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
IIS 站点似乎已禁用匿名身份验证。查看此 有关 IIS 6 匿名访问配置的文章。
Seems like the IIS site has anonymous authentication disabled. Check out this article on IIS 6 anonymous access configuration.
事实证明,异常的来源是立即尝试连接到下游 TCP 服务。作为解决方法,我最终创建了一个简单的 webservice 包装器,它使用
>
。请注意,我添加了一个相关问题询问为什么有效,而另一个无效。
Turns out that the source of the exception was from an immediate attempt to connect to a downstream tcp service. As a workaround I ended up creating a plain jane webservice wrapper which successfully connects to the downstream service fine using a domain account specified in the
<identity impersonate="true" userName=".." password=".." />
.Note, I've added a related question asking why one works and the other doesn't.