Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

unable to get Xrm.Tooling.Connector work C#

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 Profile Picture
    Aric Levin 30,188 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
    crmprogrammer2013 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
    Clem 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans