Skip to main content

Notifications

Announcements

No record found.

Customer Service forum

Console Application on Mac

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:
  • Verified answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans