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
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.
It worked. That link was helpful.
Added domain and organization name at the end of the url.
Thanks.
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156