web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Passion Dynamics / Unable to Login to Dynamics...

Unable to Login to Dynamics CRMOrganizationServiceProxy is null

Rawish Kumar Profile Picture Rawish Kumar 13,758

I came across this issue wherein when i was trying to use QueryExpression/FetchXML in my Windows/Console Application, i was getting Object reference error in Dynamics CRM 365 Online

When i digged into this further i could see the proxyservice was showing as null in the debug mode. You will not get any error when obtaining the connection.

proxynull.JPG

it generally happens when you are using tooling connector for connection to dynamics crm 365 Online.

In order to resolve the issue you have to specify the security protocol before you make calls to your Microsoft.Xrm.Tooling assembly.

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

the connection to dynamics 365 will not be available unless TLS12 is being used as Security Protocol.connection.

it should look like below:

resolution.JPG

I hope this helps!

cheers!

Comments

*This post is locked for comments