Unable to Login to Dynamics CRMOrganizationServiceProxy is null

No comments

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.


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:


I hope this helps!





Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.