日期:2014-05-16  浏览次数:21391 次

WCF 服务出现 The remote server returned an error: (401) Unauthorized.
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>

------解决方案--------------------
应该是用户权限,以及文件夹读写权限的问题。