Good morning,
We have a pretty complex application that our users run on their desktops to do some functions. I realized this was not working for some and it was for others. So, I created a very simple console application that basically connects to CRM and does a query of some entities (few lines of code). When running this, it also works on some workstations but not for others. It's not an authentication issue because the application lets you enter in user/passwords - it works for all users on some machines, none on the others. I can't figure out what is missing from the client machines that this does not work on. They all have the same versions of .net installed, windows, etc.
Error we receive is "Unable to Login to Dynamics CRM".
Also: "System.NullReferenceException: Object reference not set to an instance of an object"
Dynamics Version: 9.0.2.451
.Net Target Version: 4.6.2
API Version:
Code Example: 9.0.2.4
String crmConnectionStringCurrent = String.Format("AuthType=Office365;Username={1}@blah.com; Password={0};Url=org.api.crm.dynamics.com/.../v9.0", password, username); CrmServiceClient connTest = new CrmServiceClient(crmConnectionStringCurrent);
Does anyone have any recommendations? Again, we have 2 workstations (very similar). This app will run on 1 with user X and will not run (yielding above error) on the other.
Thank you!
*This post is locked for comments