Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

MS CRM 2011 - Receiving error when trying to authenticate to CRM webservice

Posted on by 170

Hi All, 

I am trying to connect to CRM webservice through my .Net web application code but it fails with below error message. The customer's CRM is configured with IFD. This code was working ok previously but suddenly started failing with below authentication issues.  ADFS and CRM are installed on separate servers. 

Error 1: 

http://sts.contoso.co.uk/adfs/services/trust/13/username that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

Error 2: 

Server was unable to process request. ---> Could not establish secure channel for SSL/TLS with authority 'sts.contoso.co.uk'.

Can anyone please help me as I have been struggling with this for two days without result and I need to get the customer's applications up and running again.

 

Things I have tried so far

 

1) Tried Disabling the username endpoint on the adfs server and then did an IIS reset and restarted the ADFS Service adfs/services/trust/13/username

2) Followed the instructions from below blog. Indeed the server adfs url was set to http so I changed it to https and followed all steps from below blog

http://www.powerobjects.com/2014/04/22/error-adfsifd-url-dynamics-crm/

3) I have followed all steps from below blog to remove port 80 from IIS binding on ADFS server. 

http://help.clickdimensions.com/the-authentication-endpoint-username-was-not-found-on-the-configured-secure-token-service-error-when-registering/

*This post is locked for comments

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans