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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Reporting errors and setspn confusions?

(0) ShareShare
ReportReport
Posted on by 795

I am experiencing the problem similar to the third section SPN / SSPI issues in the article: conorssnippetdiary.blogspot.com/.../mscrm-and-dreaded-rsprocessingaborted.html with error logs:

Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset 'DSMain'. ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException:

Microsoft.Crm.CrmException: An unexpected error occurred.

System.ServiceModel.Security.SecurityNegotiationException: 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 --->

I read several related articles: technet.microsoft.com/.../hh699825.aspx, blogs.msdn.com/.../service-principal-name-spn-checklist-for-kerberos-authentication-with-iis-7-0.aspx. It seems I do not need to set up this SPN thing:

IIS 7.5, CRM app pool identity is a domain account, Kernel-Mode authentication enabled, not using Negotiate:Kerberos as provider (just NTLM and Negotiate), CRM app and SQL server/reporting services on different servers, I access my CRM through a host header not crm app server NetBIOS.

Do I need to set SPN?

If needed, set what SPN (HTTP and/or MSSQL) to whom (crm app server, sql server or crm app pool account?) and where (crm app server, and / or sql server)?

Could someone who has done this similar to my case recommend me?

Thanks,

Guangming

*This post is locked for comments

I have the same question (0)
  • Mohammad Atif Profile Picture
    on at

    An Error message A call to SSPI failed, see inner exception. you may refer support.microsoft.com/.../2590774.

    Thanks,

    Mohammad

  • heguangm Profile Picture
    795 on at

    I have A.2 and A.3 by an AD admin done and I did B as I am admin to my IIS server. I can see these configurations are right by setspn -l crmapppool. and and it still did not work:

    I do not have any cluster. For my CRM server, I have several DNS records pointing to the same server. The FQDN is the one in the CRM URL. Does it matter or which one matter?

    A) Set the Service Principal Names (SPN) value for the service account running the CRM Application Pool. If there is only one CRM Web server steps 4 and 5 can be skipped.

    1. Open an elevated command prompt window. To open an elevated Command Prompt window, click Start, point to All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.

    2. Type setspn -a HTTP/<ServerName> <ServiceAccountDomain>\<ServiceAccount>, where <ServerName> is the name of the server, <ServiceAccountDomain> is the name of the domain containing the CRMAppPool service account, and <ServiceAccount> is the name of the CRMAppPool service account.

    3. Type setspn -a HTTP/<ServerFQDN> <ServiceAccountDomain>\<ServiceAccount>, where <ServerFQDN> is the fully qualified domain name (FQDN) of the server.

    4. Type setspn -a HTTP/<ClusterName> <ServiceAccountDomain>\<ServiceAccount>, where <ClusterName> is the name of the AD RMS cluster.

    5. Type setspn -a HTTP/<ClusterFQDN> <ServiceAccountDomain>\<ServiceAccount>, where <ClusterFQDN> is the fully qualified domain name (FQDN) of the cluster.

    B) Set the IIS useAppPoolCredentials value to True for the CRM Website:

  • Suggested answer
    heguangm Profile Picture
    795 on at

    finally I tried the FQDN name of the crm server with the right port number, it seems solved the problem. Seems that CNAME domain names do not matter.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans