top of page

Issues connecting to CRM 365 from IIS only




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.

#CRM365connectionissues

0 views0 comments

Recent Posts

See All

The following improvements are included in this release of the Web API, our OData v4 endpoint: Custom actions that return EntityReference, Entity, or EntityCollection types are available. Changes to A

bottom of page