+ -
当前位置:首页 → 问答吧 → WCF 服务出现 The remote server returned an error: (401) Unauthorized.

WCF 服务出现 The remote server returned an error: (401) Unauthorized.

时间:2011-03-02

来源:互联网

win7下 wcf调用服务出现这个错误,
The remote server returned an error: (401) Unauthorized.

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was '.'. 

IIS该如何设置呢?

目前IIS 
网站->属性->目录安全性->身份验证方法: 同时选中”匿名访问”和”集成Windows身份验证”
CONFIG
<security mode="Transport">
<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>

作者: yutian_31   发布时间: 2011-03-02

大侠们 指点下

作者: yutian_31   发布时间: 2011-03-02