Replies: 1 comment 2 replies
-
Ah, I just found #113 which seems to deal with the same issue. I will report back soon as to whether the suggested fixes there resolve my issue. That issue is closed, but I've got evidence that this issue still exists in 0.5.10. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm creating a .Net 6.0 Blazor Server project which references version 0.5.10 of the DataverseServiceClient and injects a Singleton wrapper class containing an instance of a ServiceClient for use in Controllers and Razor pages/components through DI.
If I instantiate an instance of ServiceClient in Program.cs before the application starts running, it connects fine, IsReady is true and the ServiceClient can retrieve/create/etc. This confirms that my CRM connection string is correct. The app connects to CRM using the ClientSecret AuthType.
If I attempt to use the class after the app has started running, when it attempts to instantiate a new ServiceClient using the constructor below, then the application hangs on this line forever without ever throwing an exception or running past the instantiation.
this.ServiceClient = new ServiceClient(organisationURL, clientId, clientSecret, true);
The only information I have about what is going on is via app insights, where I can see the events logged below (sensitive information replaced by XXX).
Event 1
Event 2
I realise this is a fairly specific situation, but I'm really looking for any guidance on the questions below:
Beta Was this translation helpful? Give feedback.
All reactions