Http://www.cnblogs.com/yiyisawa/archive/2008/12/16/1356191.html wcf client communicates with webservice (-) modify the configuration file only and change the server's article if you want to transfer the wcf service or web service host to iis (the previous host is not in iis, but the service is temporarily run, and then take the temporary service address), there are several points to note:
1. When a wcf client is used to call a wcf service or web service, an issue occurs when the wcf client calls a web service:
The HTTP request is unauthorized with client authentication scheme 'anonus us'. The authentication header has ed from the server was 'negotiate, Kerberos, ntlm '.
Solution:
Add the following settings to the security settings in the configuration file binding of the wcf client. For details, see:
Http://www.kodyaz.com/blogs/software_development_blog/archive/2008/02/25/849.aspx
Code
<Security mode = "TransportCredentialOnly">
<Transport clientCredentialType = "Windows" proxyCredentialType = "Windows" realm = ""/>
<Message clientCredentialType = "UserName" algorithmSuite = "Default"/>
</Security>
2. When you browse webservice in iis, the Service Unavailable is highlighted in red.
Solution:
Internet Information Services (iis) Manager ---> web sites ---> virtual directory of a specific project --> right-click Properties ---> permissions:
1. Add the following permissions:
Iis_WPG
NETWORK SERVICE
Users (Yiyisawa \ Users) should be added based on the domain name, (looks like)
Internet Information Services (iis) manager ---> web sites ---> virtual Directory of a specific project --> right-click properties ---> properties --> Directory Security ---> Authentication and access control --> edit ---> select Enable anonynous access.
In addition, the I386 file is required during the IIS reinstallation process because the HOST is going to be sent to iis and the IIS fails:
Insert a system disk and boot it to the drive letter.