web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer Service forum

Console Application on Mac

(0) ShareShare
ReportReport
Posted on by

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

Categories:
I have the same question (0)
  • Verified answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at
    RE: Console Application on Mac

    Like Guido answered in Stack Overflow, it’s not going to work in MacOS. Because Dynamics SDK (.Net framework 4.6.2) works only on Windows for now.

    stackoverflow.com/.../7920473

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans