客户端身份验证方案“匿名"禁止HTTP请求 [英] The HTTP request was forbidden with client authentication scheme 'Anonymous'

查看:517
本文介绍了客户端身份验证方案“匿名"禁止HTTP请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I saw there are many solutions for this error, but in my case i am hosting the WCF service in WindowsService and using "wsHttpBinding" with transport security of type Certificate. This works fine when deployed on a remote machine.But when i am trying to debug locally it gives the error "The HTTP request was forbidden with client authentication scheme 'Anonymous'.".

我的客户是Windows ap 复制,试图访问同一托管的WCF Windows服务上的计算机.

My client is a windows application trying to access the WCF hosted in the same machine on windowsservice.

我已经创建了一个自签名证书,并使用它来进行身份验证

I have created a selfsigned certificate and using it to authenticate

推荐答案

Hello Shishir,

Hello Shishir,

在本地调试时,您要连接到哪个地址?我假设屏幕快照显示的是部署时的远程配置,而不是本地的.  

When you are debugging locally, what address are you trying to connect to?  I am assuming the screenshot shows the remote configuration for when it is deployed and not when it is local.  

此外,通常会有一个内部异常可以提供更多信息.  要做的一件事是打开wcf服务跟踪,以便您可以获取有关其抱怨的更多信息.  它可能很简单,就像您尝试在没有连接的情况下进行连接 在您的客户端中将证书用于需要该证书的服务.

Also, often there is an inner exception that could give more information.  One thing to do is to turn on wcf service tracing so you can get more information as to what it is complaining.  It could be as simple as you are trying to connect without using a certificate in your client to a service that requires it.


这篇关于客户端身份验证方案“匿名"禁止HTTP请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆