I have developed C# console app that connects through the XRM to the CRM 8.2 on prem.
Everything works fine locally on my machine, the console app connects to the CRM 8.2 on prem successfully.
The problem arises when I deploy the app on a windows server. It doesn't want to connect to the CRM 8.2 on prem.
I tried many times, changed the XRM version, nothing helps.
I use the CrmServiceClient and pass the connection string like, usually it's the URL, the organization name, the AuthType and RequireNewInstance true
It worked with the same connection string before, never changed it, just when I deployed the app once again on the server, it just doesn't want to connect to the CRM anymore.
Nothing major was changed, the servers that app connects to and the CRM urls are the same.
I checked the restrictions on the server, seems all good, the app starts but doesn't connect to the crm 8.2 on prem.
The user running the app has enough rights to connect to all the resources it needs, also it has an admin role in the crm.
I also tried to run the app with different user and on different server, nothing helped.
I use the Microsoft.CrmSdk.XrmTooling.CoreAssembly.8.2.0.2 and the version of the tooling connector version is 2.2.0.0
Running the app on .NET 4.6.1 and also tried running it on 4.5.2.
Did anyone else ever experienced such scenario?
Answers would be highly appreciated.