我编写了应用程序由 c# 形式编写的代码 application.crm 使用 ssl 运行。
ClientCredentials credential = new ClientCredentials();
credential.Windows.ClientCredential = new
System.Net.NetworkCredential("username", "password", "domain");
Uri organizationUri = new Uri("https://serverAdress/Orgname/XRMServices/2011/Organization.svc");
Uri homeRealUri = null;
serviceProxy = new OrganizationServiceProx
(organizationUri, homeRealUri, credential, null);
serviceProxy.EnableProxyTypes();
我也试过tihs版本。
> ClientCredentials Credentials = new ClientCredentials();
> Credentials.Windows.ClientCredential.UserName ="<username>";
> Credentials.Windows.ClientCredential.Password ="<password>";
它不会抛出任何异常,但 serviceProxy 无法通过身份验证。如何解决?任何建议。