Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

unable to get Xrm.Tooling.Connector work C#

(0) ShareShare
ReportReport
Posted on by 2,665

Hi,

We are CRM 2016 onprem(recently upgraded from CRM 2015 onprem).

I am trying to use the new tooling connector in my console application. Previously, for such console apps I used to use Microsoft.Xrm.Client namespace.

Now, with the tooling connector I am getting " Organization cannot be null or empty."

My app.config looks like this:

add name="CRM" connectionString="Url=https://xxxx.xxx.us; Username=xxx\CRMxxx; Password=xxxxxx" />

And here is the code snippet:

CrmServiceClient service = new Microsoft.Xrm.Tooling.Connector.CrmServiceClient(



ConfigurationManager.ConnectionStrings["CRM"].ConnectionString);

return service;

Someone please guide me through this. Thanks for any help!

 

*This post is locked for comments

  • Aric Levin - MVP Profile Picture
    30,188 Moderator on at
    RE: unable to get Xrm.Tooling.Connector work C#

    Take a look at the article below:

    missdynamicscrm.blogspot.com/.../error-unable-to-login-to-dynamics.html

    Notice the image at the middle with the different connection strings. That should help.

    If not check out the following msdn article:

    msdn.microsoft.com/.../mt608573.aspx

    Hope this helps.

  • crmprogrammer2013 Profile Picture
    2,665 on at
    RE: unable to get Xrm.Tooling.Connector work C#

    It worked. That link was helpful.

    Added domain and organization name at the end of the url.

    Thanks.

  • Verified answer
    Clem Profile Picture
    2,541 on at
    RE: unable to get Xrm.Tooling.Connector work C#

    Hello,

    Are you onpremise ? according to : msdn.microsoft.com/.../mt608573.aspx

    Can you try adding the following 2 parameters then : AuthType and the domain.

    You have a sample for each scenario in the url above.

    Regards,

    Clément

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans