Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Unable to Login to Dynamics CRMOrganizationWebProxyClient is null

Posted on by 156

Hello Everyone,

I m trying to created a Console App for Dynamics 365.

I m getting below error while making the connection and get Organization Server in Console App:

pastedimage1617092826615v1.png

"Unable to Login to Dynamics CRMOrganizationWebProxyClient is null"

Note: User has MFA enabled so I m using App Password for making the connection.

  • meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Unable to Login to Dynamics CRMOrganizationWebProxyClient is null

    You will get this error for newly created tenants. Older tenants still support the old authentication method.

  • Amit Prajapati Profile Picture
    Amit Prajapati 156 on at
    RE: Unable to Login to Dynamics CRMOrganizationWebProxyClient is null

    It didn't work for me and giving the same error.

    I have use same method for another console app for different but I m not getting issue. I m just getting the issue with specific tenant. Is there is any issue with user setup or Connection Library?

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Unable to Login to Dynamics CRMOrganizationWebProxyClient is null

    Hello,

    Can you please share your connection string ?

    I believe that you are using WS-Trust authentication which is depracted!

    You should use something like:

    connectionString = "AuthType=OAuth;Username=jsmith@contoso.onmicrosoft.com; Password=passcode;Url=contosotest.crm.dynamics.com;AppId=51f81489-12ee-4a9e-aaae-a2591f45987d; RedirectUri=app://58145B91-0C36-4500-8554-080854F2AC97;LoginPrompt=Auto"

    Doc: docs.microsoft.com/.../authenticate-office365-deprecation

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans