Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

A call to SSPI failed, see inner exception. ---> System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> System.ComponentModel.Win32Exception: The target principal name is incorrect

(0) ShareShare
ReportReport
Posted on by 122

HI,

Whenever the plugin is running in sandbox i am getting above error message.  Can you please explain whats goign on. 

Thanks

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: A call to SSPI failed, see inner exception. ---> System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> System.ComponentModel.Win32Exception: The target principal name is incorrect

    Hi,

    This generally happens if there is a problem with the SPN. As you are getting these from sandbox plugin, it appears that the sandbox service is running with some service account whoch SPN are either missing or not added.

    You can potentially fix this by changing the isolation mode of the plugin assembly to "None" however this will not fix your sandbox service and will cause the same issue with other plugins/ services which uses sandbox service.

    To fix this issue, as mentioned above, you need to fix SPN's. Refer the below link which has the details list of SPN needs to be set-

    https://community.dynamics.com/crm/b/crminthefield/posts/crm-2011-service-principal-names-spn-generation-and-usage

    docs.microsoft.com/.../hh699825(v=crm.8)

    You can also refer below threads on the same issue-

    support.clickdimensions.com/.../115001168554-Plugin-Errors-in-On-Premise-CRM-related-to-Sandbox-Processing-Service

    community.dynamics.com/.../after-moving-crm-2016-to-a-new-server---all-plugins-fail-to-run-the-target-principal-name-is-incorrect

    Note: If you are unsure about SPN's please do not follow the steps. These needs to be done by your adminstrator as settng the SPN's incorrectly can cause your complete system down.

    Hope this helps.

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

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... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans