Everything working with no issues with the latest Nuget Packages for CRM trough a console application when connecting to CRM 365.
Now, we had to promote a service that is currently working and has been working already for long time to consume CRM 365 data to work with the new CRM ddls.
We added the dlls trough nuget packages, everything compiling but when this next line was called:
OrganizationServiceProxy serviceProvider = new OrganizationServiceProxy(config.OrganizationUri,
config.HomeRealmUri, config.Credentials, config.DeviceCredentials);
We were having this next exception:
Metadata contains a reference that cannot be resolved: ‘https://crm.domain/XRMServices/2011/Organization.svc?wsdl&sdkversion=9.0’.
After some research we found that the solution would be before calling this line, call first:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
I will investigate more when i have some spare time.
Hope it helps.
Comments