ServiceReference1.OrganizationServiceClient osc = new ServiceReference1.OrganizationServiceClient();
osc.ClientCredentials.Windows.ClientCredential = new System.Net.NetworkCredential("administrator", "P@$$w0rd", "crm.com");
同样的代码在A服务器上就能成功,在我的B服务器上就调用不成功,两台机器的域名一样,用户密码也一样!
B服务器出的错误提示为:
“从另一方收到未进行安全处理或安全处理不正确的错误。有关错误代码和详细信息,请参见内部 FaultException”
为什么A服务器就能成功呢?B为什么不能成功?需要怎么配置机器吗?
过好今天!