Wednesday, 7 November 2018

Issues connecting to CRM 365 from IIS only

Everything working with no issues with the latest Nuget Packages for CRM through 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.

CRM 365 Cloud - Disassociate 2 records using typescript

In case you need to Disassociate 2 records, please find below the code that allows you to do that.      export async function DissociateE...