






















I got following error message when trying to call a WCF service which is deployed in the intranet from my web site.
System.ServiceModel.Security.MessageSecurityException: The HTTP request was forbidden with client authentication scheme 'Negotiate'. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- End of inner exception stack trace ---
However calling it works just fine in my console application. Then I guess the 403 may from the proxy server, instead of the WCF service, because I configured to use proxy in my web site. So I disabled the proxy by adding following to the binding configuration
useDefaultWebProxy="true"
Everything works fine…
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。