我刚刚花了2天的时间来总结以下错误,因此我可以分享我的调查结果。
The scenario is this: I have a WCF service hosted on IIS7. The service uses basicHttpBinding with Security Mode set to TransportCredentialOnly. The web site has Anonymous Authentication and Windows Authentication enabled. The Appliaction Pool for the website runs under a domain account, wich has every possible right on the physical folder of the website. Browsing the .svc for the service from internet explorer worked, but when we tried to invoke a method of the service from a client, we got an error: "The HTTP request is unauthorized with client authentication scheme Negotiate". Also, the IIS log showed a 401.5 error for every invoke of the method, wich is normal for this security setting, but it should be followed by a 200, wich wasn t the case here.
最后,我们设法通过在
Cheers!