Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

An unsecured or incorrectly secured fault was received from the other party

Posted on by Microsoft Employee

0 down vote favorite

I have an API project created in AP.Net MVC and is hosted in Azure. This portal is using a CRM environment as back end. When we connect our portal to our azure server environment (from some particular device and location in same time zone , but some hours difference because of DST) ,we get the below error:

"An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. Innerexception: System.ServiceModel.FaultException: At least one security token in the message could not be validated."

Any help?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: An unsecured or incorrectly secured fault was received from the other party

    Actually I'm new to Azure . As you mentioned , my application hosted in Azure and my MVC application trying to connect CRM. And may I know how to reduce Azure VM time difference via Azure portal settings (App service settings) ?

  • Suggested answer
    Nausher Sayeed Profile Picture
    Nausher Sayeed 520 on at
    RE: An unsecured or incorrectly secured fault was received from the other party

    If i am not wrong  your application hosted in Azure and that MVC application trying to connect CRM. If this the scenario then reduce Azure VM time diffrence.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: An unsecured or incorrectly secured fault was received from the other party

    But request might comes from a device which is in 5 min different time right? So how can we reduce/ restrict the time difference. My problem is can we handle a request coming from 5 min different time zone.

  • Nausher Sayeed Profile Picture
    Nausher Sayeed 520 on at
    RE: An unsecured or incorrectly secured fault was received from the other party

    You need to reduce the time difference to  less than 5 mins, example 2 mins.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: An unsecured or incorrectly secured fault was received from the other party

    Hello Nausher , Thanks for the response.There is no error occurs while we request from other timezone/s. The issue coming while the request location is in the same timezone, but probably 5 min difference in DST.I need to handle this particular scenario. May I know ,is there any permanent solution for this?

  • Nausher Sayeed Profile Picture
    Nausher Sayeed 520 on at
    RE: An unsecured or incorrectly secured fault was received from the other party

    It is usually happen if the client and server time are 5 min or more different.

    And also might be because of the incorrect timezone or if same timezone but different 5 min. Check your timezone or if same timezone then time difference

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans