Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

A call to SSPI failed

Posted on by 5

Hey,

We have dynamics 365 onpremise v9.1.10 working on https wprotocol with ssl certificate,

The problem is that the trace fills up with the error described below,


The system works good but it prevent us to enable tracing when we realy need it,


The Error on the async and wp trace is :

/StackTrace><ExceptionString>System.ServiceModel.Security.SecurityNegotiationException: A call to SSPI failed, see inner exception. ---&amp;gt; System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---&amp;gt; System.ComponentModel.Win32Exception: The target principal name is incorrect
> --- End of inner exception stack trace ---
> at System.Net.Security.NegoState.StartSendAuthResetSignal(LazyAsyncResult lazyResult, Byte[] message, Exception exception)
> at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
> at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
> at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
> at System.Net.Security.NegoState.ProcessAuthentication(LazyAsyncResult lazyResult)
> at System.Net.Security.NegotiateStream.AuthenticateAsClient(NetworkCredential credential, String targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)
> at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty&amp;amp; remoteSecurity)
> --- End of inner exception stack trace ---</ExceptionString><InnerException><ExceptionType>System.Security.Authentication.AuthenticationException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>A call to SSPI failed, see inner exception.</Message><StackTrace> at System.Net.Security.NegoState.StartSendAuthResetSignal(LazyAsyncResult lazyResult, Byte[] message, Exception exception)
> at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
> at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
> at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
> at System.Net.Security.NegoState.ProcessAuthentication(LazyAsyncResult lazyResult)
> at System.Net.Security.NegotiateStream.AuthenticateAsClient(NetworkCredential credential, String targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)
> at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty&amp;amp; remoteSecurity)</StackTrace><ExceptionString>System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---&amp;gt; System.ComponentModel.Win32Exception: The target principal name is incorrect
> --- End of inner exception stack trace ---
> at System.Net.Security.NegoState.StartSendAuthResetSignal(LazyAsyncResult lazyResult, Byte[] message, Exception exception)
> at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
> at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
> at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
> at System.Net.Security.NegoState.ProcessAuthentication(LazyAsyncResult lazyResult)
> at System.Net.Security.NegotiateStream.AuthenticateAsClient(NetworkCredential credential, String targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)
> at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty&amp;amp; remoteSecurity)</ExceptionString><InnerException><ExceptionType>System.ComponentModel.Win32Exception, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The target principal name is incorrect</Message><StackTrace> at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty&amp;amp; remoteSecurity)
> at System.ServiceModel.Channels.StreamSecurityUpgradeInitiatorBase.InitiateUpgrade(Stream stream)
> at System.ServiceModel.Channels.ConnectionUpgradeHelper.InitiateUpgrade(StreamUpgradeInitiator upgradeInitiator, IConnection&amp;amp; connection, ClientFramingDecoder decoder, IDefaultCommunicationTimeouts defaultTimeouts, TimeoutHelper&amp;amp; timeoutHelper)
> at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper&amp;amp; timeoutHelper)
> at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper&amp;amp; timeoutHelper)
> at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
> at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
> at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
> at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
> at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
> at System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)
> at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
> at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(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)
> at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp;amp; msgData, Int32 type)
> at Microsoft.Crm.Sandbox.ISandboxHost.Ping(SandboxCallInfo callInfo, SandboxHostConfiguration hostConfigurationInfo, SandboxWorkerConfiguration workerConfigurationInfo, Dictionary`2 sandboxAdditionalInfo, CrmTraceRemoteSettings remoteSettings, SandboxWorkerExecutionRecord&amp;amp; workerExecutionRecord, String&amp;amp; hostSidSddlForm)
> at Microsoft.Xrm.RemotePlugin.Wcf.Client.WcfHostClient.Ping(IsolationType isolationType)
> at Microsoft.Xrm.RemotePlugin.Client.SandboxHostHealthChecker.TryGetAuthMode(IIndex`2 channelByAuthMode, IsolationType isolationType, RemoteHost remoteHost, ILogger logger, ServiceStatus&amp;amp; status, AuthMode&amp;amp; validAuthMode)
> at Microsoft.Xrm.RemotePlugin.Client.SandboxHostHealthChecker.&amp;lt;&amp;gt;c__DisplayClass16_1.&amp;lt;BackgroundHealthMonitorInternal&amp;gt;b__2()
> at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
> at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
> at Microsoft.Xrm.RemotePlugin.Client.SandboxHostHealthChecker.&amp;lt;&amp;gt;c__DisplayClass16_0.&amp;lt;BackgroundHealthMonitorInternal&amp;gt;b__0()
> at System.Threading.Tasks.Task.Execute()
> at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
> at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
> at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task&amp;amp; currentTaskSlot)
> at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
> at System.Threading.ThreadPoolWorkQueue.Dispatch()
></StackTrace><ExceptionString>System.ComponentModel.Win32Exception (0x80004005): The target principal name is incorrect</ExceptionString><NativeErrorCode>80090322</NativeErrorCode></InnerException></InnerException></Exception></TraceRecord>

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,340 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans