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 :
Customer experience | Sales, Customer Insights,...
Unanswered

Authentication Error Microsoft Dynamics CRM 2016 v 8.2

(0) ShareShare
ReportReport
Posted on by 566

I am working on a Microsoft Dynamics CRM 2016 version 8.2 on-premises environment with separate front-end, async and sql servers to support the deployment.  This deployment is NOT Internet Facing, is NOT using Claims-based authentication, and instead is using Windows Authentication. There are no issues with anyone logging in - all users can log into the system and use the system as expected. 

However, we get a platform error when we publish all customizations. This error does not prevent the actual customizations from being published, but an error is thrown to the user and there is no log to download. 

The Trace Logs show the following:

System.Security.Authentication.AuthenticationException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Authentication failed on the remote side (the stream might still be available for additional authentication attempts).</Message><StackTrace>   at System.Net.Security.NegoState.ProcessReceivedBlob(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.AuthenticateAsServer(NetworkCredential credential, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel)
   at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeAcceptor.OnAcceptUpgrade(Stream stream, SecurityMessageProperty&amp;amp; remoteSecurity)</StackTrace><ExceptionString>System.Security.Authentication.AuthenticationException: Authentication failed on the remote side (the stream might still be available for additional authentication attempts). ---&amp;gt; System.ComponentModel.Win32Exception: The target principal name is incorrect
   --- End of inner exception stack trace ---

We have Service Principal Names set for the front-end server. These are required for users to log in.

We have attempted to:

1. Add a SPN for the async server. Did not help this issue.

2. Add a SPN for the Service Account running the Async service against the async server.

Neither of these solved this issue.

If anyone happens to have seen this issue before and solved it, please let us know. Thanks very much!

I have the same question (0)

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 > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 178

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 142 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans