Hi Experts,
We are experiencing issues while connecting to CRM through custom code. The problem is that the same code works for same user sometimes but fails randomly for random users.
Let me share more details!
We have a custom web application developed using .NET. We are using CRM online and the number of users using this application are around 100. We connect to Dynamics CRM using CrmServiceClient, which allows us to connect using a connection string. This class is located in Microsoft.Xrm.Tooling.Connector. This web application is used by our CRM users who connect to this application by using their CRM credentials. The users are presented with a login page, they provide their credentials, on code side we use their credentials, dynamically construct our connecting string and try to connect to CRM using CrmServiceClient.
The problem is that the “Login” or the “Creating Connection” part of the code fails randomly for random users. The error is always the same, which is:
LastCrmError = Unable to Login to Dynamics CRM
Any idea that what could be the reason of this issue?