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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

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

(0) ShareShare
ReportReport
Posted on by

I'm trying to connect to MS Dynamics using the Dynamics SDK Quickstart project for Visual Studio, and I can't get it to work!! Here's what happened:

Enter a CRM server name and port [crm.dynamics.com]:
Is this organization provisioned in Microsoft Office 365 (y/n) [y]: [y]

Enter Microsoft account: laadams@triseum.com
Enter Password: **********


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

Server stack trace:
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChann
el.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState
, TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChann
el.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message messag
e, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean on
eway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan tim
eout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCall
Message methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage req
Msg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgDa
ta, Int32 type)
at Microsoft.IdentityModel.Protocols.WSTrust.IWSTrustContract.Issue(Message m
essage)
at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecu
rityToken rst, RequestSecurityTokenResponse& rstr)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.AuthenticateLiveIdInternal
(ClientCredentials clientCredentials, SecurityTokenResponse deviceToken, String
keyType)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(ClientCredent
ials clientCredentials, SecurityTokenResponse deviceTokenResponse, String keyTyp
e)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(ClientCredent
ials clientCredentials, SecurityTokenResponse deviceTokenResponse)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.AuthenticateLiveIdInternal
(AuthenticationCredentials authenticationCredentials)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(Authenticatio
nCredentials authenticationCredentials)
at Microsoft.Xrm.Sdk.Client.DiscoveryServiceConfiguration.Authenticate(Authen
ticationCredentials authenticationCredentials)
at Microsoft.Crm.Sdk.Samples.ServerConnection.GetProxy[TService,TProxy](Confi
guration currentConfig) in C:\Users\lauraadams97\SDK\SampleCode\CS\HelperCode\Cr
mServiceHelpers.cs:line 803
at Microsoft.Crm.Sdk.Samples.ServerConnection.GetDiscoveryProxy() in C:\Users
\lauraadams97\SDK\SampleCode\CS\HelperCode\CrmServiceHelpers.cs:line 1023
at Microsoft.Crm.Sdk.Samples.ServerConnection.GetOrganizationAddress() in C:\
Users\lauraadams97\SDK\SampleCode\CS\HelperCode\CrmServiceHelpers.cs:line 958
at Microsoft.Crm.Sdk.Samples.ServerConnection.GetServerConfiguration() in C:\
Users\lauraadams97\SDK\SampleCode\CS\HelperCode\CrmServiceHelpers.cs:line 302
at Microsoft.Crm.Sdk.Samples.CRUDOperations.Main(String[] args) in C:\Users\l
auraadams97\SDK\SampleCode\CS\QuickStart\CRUDOperations.cs:line 49

Authentication Failure

Press <Enter> to exit.

*This post is locked for comments

I have the same question (0)
  • ScottDurow Profile Picture
    23 on at

    Hi,

    This can happen if your system clock is the wrong time.

  • Aileen Gusni Profile Picture
    44,524 on at

    Hi Turbo

    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.

    Like server is 20.00 PM SGT then client is 20.08 SGT or even 19.50 SGT.

    Please sync your time. Usually crm server will follow domain one. Or physical server.

    Hope this helps.

    Thanks.

  • Community Member Profile Picture
    on at

    How To Sync Time With CRM, My Server Time Zone is US & CANADA,   and it was working well before.. just from 2 days i start get this error message ..

    any other solution or more details about sync time zone .. (and how to check my primary domain )

  • Suggested answer
    Community Member Profile Picture
    on at

    i fixed it by updating Internet Time Settings, there was  6 min difference between 2 servers....

  • Community Member Profile Picture
    on at

    I am new to MVC/Azure.May I know How To Sync Azure portal time With CRM

  • Shahbaaz Ansari Profile Picture
    6,211 on at

    Hi tarek,

    Can you give more detail about how did you set the time and resolved the error.

    Thanks

  • Suggested answer
    T Paul Profile Picture
    on at

    Delete the existing connection profile , and re create it...it worked for me..:)

    Also, execute MSCRMToolkit with administrator privileges.

  • ISMAIL TUTUMLUER Profile Picture
    399 on at

    I have encountered this same issue. The CRM server clock was 5 minutes ahead of its physical server. When I fixed the clock problem of the server, the error was resolved .

    Calling the NET TIME command  can help  viewing time differences;

    net time

    net time /DOMAIN

    net time \\localhost

  • Community Member Profile Picture
    on at

    Was this issue resolved?

  • D365Life Profile Picture
    on at

    We are getting this same error with a D365 instance connected to Azure. Any practical advice you could offer?

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans