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

后端 未结 1 672
太阳男子
太阳男子 2021-01-06 04:33

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 construct

相关标签:
1条回答
  • 2021-01-06 05:19

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

    Microsoft.Xrm.Tooling.Connector.TraceControlSettings.TraceLevel = System.Diagnostics.SourceLevels.All;
    Microsoft.Xrm.Tooling.Connector.TraceControlSettings.AddTraceListener(new TextWriterTraceListener("log.txt"));
    

    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.

    0 讨论(0)
提交回复
热议问题