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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Unable to Login to Dynamics CRMOrganizationWebProxyClient is null

(0) ShareShare
ReportReport
Posted on by 5

Hello, I am unable to get a CrmServiceClient from my connectionStrings. I need to use an AuthType OAuth to connect to my CRM instance (Online).

Unfortunately i get this error in my debugger : 

Name Value Type
LastCrmError "Unable to Login to Dynamics CRMOrganizationWebProxyClient is null" string

pastedimage1672061546469v2.png

I always have the same error message, here are my different tests with different connectionStrings :

1)  Test with microsoft AppID and RedirectURL :
<add name="ConnectionString"
connectionString="
AuthType=OAuth;
Username=XXX@XXX.fr;
Password=fakePW;
Url=XXXXXX.crm4.dynamics.com;
AppId=51f81489-12ee-4a9e-aaae-a2591f45987d;
RedirectUri=app://58145B91-0C36-4500-8554-080854F2AC97;
Integrated Security=true;
TokenCacheStorePath=c:\MyTokenCache\msal_cache.data;
LoginPrompt=Auto"/>

2) Test with my org :
<add name="ConnectionString"
connectionString="AuthType=OAuth;
Username=XXX@XXX.fr;
Password=fakePW;
Url=XXXXXX.crm4.dynamics.com/;
AppId=XXXXXXXXXXXX;
RedirectUri=login.microsoftonline.com/.../authorize;
LoginPrompt=Auto"/>

3) multiple others

I have some doubts about my redirect URL. The redirect URL I use in my 2nd test is the URL given to me in the AzureAD App. I see it uses Oauth2, maybe something there ?
Or do you see what I might be doing wrong ? How can I test with valid informations ? From microsoft for example.

I have the same question (0)
  • Suggested answer
    Leco Lv Profile Picture
    on at
  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at
    RE: Unable to Login to Dynamics CRMOrganizationWebProxyClient is null

    Hi,

    Make sure you have the latest nuget update ...

    Please see my console application and app.config which works on my instance.

    github.com/.../UserBUChangeUtility

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 78 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 57 Most Valuable Professional

#3
Anthony Blake Profile Picture

Anthony Blake 43 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans