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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

OrganizationWebProxyClient is null using CrmServiceClient with authtype as ClientSecret

(0) ShareShare
ReportReport
Posted on by 15

Hello Sir/Madam,

I unable to connect CRM using following command using C# 

connectionString=" AuthType=ClientSecret; url=xxxx.crm5.dynamics.com; ClientId={Application (client) ID}; ClientSecret={ClientSecret}"

CrmServiceClient svc1 = new CrmServiceClient(connectionString2);

because it's encounter this issue "LastCrmError = "Invalid Login Information : The HTTP request was forbidden with client authentication scheme 'Anonymous'.\r\nThe HTTP request was forbidden with client authentication scheme 'Anonymous'. => The remote server returned an error: (403) Forbidden.Unable to Log..."

Can you able to assist us about this issue?

 8420.test.png

I have the same question (0)
  • Esteban Coto Alfaro Profile Picture
    on at

    Hello, I recommend you to check this documentation: docs.microsoft.com/.../authenticate-office365-deprecation

    And also this thread: stackoverflow.com/.../crmserviceclient-is-always-returning-null-organization-service

    I hope this help!

    Thanks!

    Community Support Team - Esteban

    If this Post helps, then please consider Accept as solution to help the other members find it more quickly.

  • Verified answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    Have you created the Application User in Dynamics CRM and assigned security role.

    If above step is pending you will get error and will not be able to connect to crm.

    docs.microsoft.com/.../use-multi-tenant-server-server-authentication

    Please mark my answer verified if i were helpful

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans