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

Announcements

No record found.

News and Announcements icon
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
    Microsoft Employee 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,985 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 107 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 94

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans