web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM Connection Error

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Community Member Profile Picture
    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)

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

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

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 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.

  • Community Member Profile Picture
    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
    Shubham Grover Profile Picture
    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

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

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

     ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans