How do you enable logging for CrmServiceClient in the Xrm Tooling toolkit?

Question:

I’m having issues trying to log in to a CRM Online organization through the use of the latest version of the Xrm Tooling nuget package using the connection string constructor from a custom powershell cmdlet.

I’m receiving a rather unhelpful “Unable to Login to Dynamics CRM” error message and am attempting to enable tracing to troubleshoot but have not been able to enable it by modifying the .dll.config file like the below (taken from an XrmToolbox issue on GitHub):

Answer:

I was able to work around this by configuring the listener programmatically through:

Which pointed me to the actual error which was that the CrmServiceClient was expecting a URL with the organization unique name instead of the URL name.

Source:

How do you enable logging for CrmServiceClient in the Xrm Tooling toolkit? by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply