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

  • Verified answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: OrganizationWebProxyClient is null using CrmServiceClient with authtype as ClientSecret

    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

  • Esteban Coto Alfaro Profile Picture
    on at
    RE: OrganizationWebProxyClient is null using CrmServiceClient with authtype as ClientSecret

    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.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 82 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans