服务器端 身份验证设置的是 只启用Windows身份验证,设置好登录名,密码,域等信息,
现在一段测试程序连接WCF地址,访问密码、用户名、域都配置正确,配置文件设置验证如下:
在本机上运行,一切正常,能够访问数据库等等一切操作,但是如果将程序放到服务器上(这个服务器就是搭建WCF 的服务器),运行就会爆验证不通过的错,报错如下:System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
但是服务器与程序的 配置都是 NTLM, 为什么会报错, 在其他所有机器上运行都是正常的, 只有这种 客户端与服务器同体的时候就报错, 求大神解答