Hi,
I have Visual Studio Enterprise 2019 installed on a Mac running Mojave (10.14.4) and I am trying to create a simple C# Console Application to retrieve and update records in my CRM environment.
I am initializing a new instance of CrmServiceClient with the code below:
string connectionString = "authtype=Office365;username=*****************@**********.com;password=**********;url=https://**********.crm4.dynamics.com;";
CrmServiceClient conn = new CrmServiceClient(connectionString);
On runtime, if I watch conn "isReady" property is “false” and there is an error message: "Unable to Login to Dynamics CRM OrganizationWebProxyClient is null".
This means I cannot initialize IOrganizationService and do the operations.
Additional info:
- I have already tried adding ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 with the same outcome
- Latest XRMTooling nugget package is added to the project
- Target framework is 4.6.2
- The same code works on Windows
Any suggestions would be highly appreciated.
Regards,
Ciprian