Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用本地系统帐户从Windows服务访问具有集成Windows身份验证的WCF服务_Wcf_Windows Services_Windows Authentication_Wcf Security_Wcf Client - Fatal编程技术网

使用本地系统帐户从Windows服务访问具有集成Windows身份验证的WCF服务

使用本地系统帐户从Windows服务访问具有集成Windows身份验证的WCF服务,wcf,windows-services,windows-authentication,wcf-security,wcf-client,Wcf,Windows Services,Windows Authentication,Wcf Security,Wcf Client,我们在专用服务器上部署了使用集成windows身份验证的WCF服务。 客户端计算机上将有Windows服务[Windows服务使用本地系统帐户]。当Windows服务中的WCFServiceClient访问WCF服务时,我们收到一个错误。[如果Windows服务在服务器计算机上,则工作正常] System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client aut

我们在专用服务器上部署了使用集成windows身份验证的WCF服务。 客户端计算机上将有Windows服务[Windows服务使用本地系统帐户]。当Windows服务中的WCFServiceClient访问WCF服务时,我们收到一个错误。[如果Windows服务在服务器计算机上,则工作正常]

System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate,NTLM'. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
   at System.Net.HttpWebRequest.GetResponse()
   at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
我们不能允许匿名访问,也不能从WCF服务中删除windows身份验证。有没有办法解决这个问题

客户端的配置是

<basicHttpBinding>
        <binding name="BasicServiceHttpBinding">
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows" proxyCredentialType="None"
              realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
</basicHttpBinding>

服务器配置为

 <basicHttpBinding>
        <binding>
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows" />
          </security>
        /binding>
  </basicHttpBinding>

/绑定>

迪帕克先生,有什么解决方案吗??问题日期为2月11日…否。该服务应在用户的网络服务或域帐户下运行。但是,网络服务方法在windows server 2003计算机上不起作用。。。