WCF服务和Sharepoint服务的双跃点问题都托管在同一台iis服务器上

时间:2014-08-25 16:23:27

标签: asp.net wcf iis sharepoint sharepoint-2013

当WCF服务尝试访问内容的sharepoint站点时,我收到以下异常。

Exception Details: System.Net.WebException: The remote server returned an error: (401) Unauthorized.

[WebException: The remote server returned an error: (401) Unauthorized.]
   System.Net.HttpWebRequest.GetResponse() +6592536
   System.ServiceModel.Channels.HttpChannelRequest.WaitForReply(TimeSpan timeout) +55

[MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was ''.]
   System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +10733331
   System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +336

我的IIS服务器版本是IIS 8.0。 我们的Sharepoint服务器/站点与我的客户端计算机位于同一个域中。

1 个答案:

答案 0 :(得分:0)