Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

CRM Connection Error

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

several time connection is failed  to crm online 2016 with console application. there is no any error in code.

it works perfectly,but some time it goes failed. 

error Msg:

An unhandled exception of type 'System.ServiceModel.Security.MessageSecurityException' occurred in Microsoft.Xrm.Sdk.dll

Additional information: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.

*This post is locked for comments

  • Suggested answer
    Gampi Reddy Profile Picture
    Gampi Reddy 85 on at
    RE: CRM Connection Error

    Use this code before connecting CRM using function.....

     ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

  • Suggested answer
    Shubham Grover Profile Picture
    Shubham Grover 10 on at
    RE: CRM Connection Error

    Hello there,

    I faced the similar issue and tried to remove and add again the microsoft.xrm.sdk.dll.

    The login credentials for your CRM that you mentioned in your code may be different or incorrect. I am saying so because i faced the same issue and found that my login credentials were incorrect so i corrected the credentials and it worked fine.

    Thanks,

    Shubham Grover

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM Connection Error

    I have the same issue but the proposed fix does not help. Just getting the same error again.

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: CRM Connection Error

    Hi Kiran Satani,

    To fix this, you can try deleting the device registration folder named LiveDeviceID in your profile folder C:\Users\<username>. Then, try to connect again.

    msdn.microsoft.com/.../gg309305.aspx

    Hope this helps.

  • Faisalk Profile Picture
    Faisalk 130 on at
    RE: CRM Connection Error

    We are in the similar situation and facing connection and several re-build related issues since yesterday

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM Connection Error

    We are also facing similar issues for last 5 hrs

    Error : An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.

    Stack Trace : Server stack trace:

      at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout)

      at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)

      at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

      at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans