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,...
Suggested Answer

The user authentication failed!

(0) ShareShare
ReportReport
Posted on by 5

When I try to connect to crm 2011 using custom tool from outside CRM box I get the following error. The user I am using is MS CRM administrator. However I am able to login crm with same user account details using web client.

Environment Details:

CRM 2011 RU16

ADFS

SSL on default port

IFD:Yes

Any idea?It is very urgent.

Thanks in Advance

Failed to connect to CRM.System.InvalidOperationException: The user authentication failed! at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.AuthenticateCore()  at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.Authenticate()  at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.ValidateAuthentication()  at Microsoft.Xrm.Sdk.Client.ServiceContextInitializer`1.Initialize(ServiceProxy`1 proxy)  at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request)  at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.Execute(OrganizationRequest request)  at 

I have the same question (0)
  • Suggested answer
    Ganesh Chowhan Profile Picture
    160 on at

    Hi there,

    is your organization uses Proxy for accessing sites? If so please try to use following in your code app config or web config and try.

    <system.net>
    <defaultProxy useDefaultCredentials="true">
    <proxy proxyaddress="your org proxy address" usesystemdefault="True" />
    </defaultProxy>
    </system.net>

    If you are on default proxy, just remove the proxyaddress parameter. 

  • Shadrach Profile Picture
    5 on at

    Hello Ganesh Chowhan ,

    Thank you for your response.

    The organization uses proxy, however, the authentication issue comes up intermittently, restarting the server and doing an iis_reset would temporarily fix the issue and it comes back after a couple of hours.

    The application has been set up for almost 3 years now and has been working fine, the issue only started recently, and no change has been made to the application source since it was created and hosted on IIS.

    I'll appreciate your help on this.

  • Suggested answer
    Ganesh Chowhan Profile Picture
    160 on at

    Hi Shadrach,

    It appears that you server had some recent patch or security update or some recent changes which could be the root cause? Does your IIS stops as well?

    I would request please validate the following things at server level.

    1. Check all the IIS settings and security is in place.

    2. Check Server certificates, also if your CRM applications certificates. Should not be expired or invalid.

    3. Server Firewall. IP/ Port whitelisting and all. 

    4.  Is your CRM using HTTP or HTTPS, in case on SSL, check TLS versions, it should be latest one.

    5. Check server evet logs for any errors or warning. This would help why your application is stopping servicing HTTP request.

    6. If your IIS setup on user principle, check service account as well, such as password policy should be set on never expiry, not locked by any other sources.  

    Try these troubleshoots and check if you can find any root cause to this.

    Thank you.

    Ganesh

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 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans