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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :

The request for security token could not be satisfied because authentication failed error in CRM while developing Visual Web Part in SharePoint 2013.

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee

Hi,

We recently developed a Visual Web Part which was using OrganizationService to interact with CRM.

We were initially using Network Credentials for OrganizationService and were setting appropriate username, password and domain. Later we changed it to Default Credentials and set the AppPool identity of the SharePoint portal’s app pool to a CRM User with appropriate access. It was then we started getting this error.

The reason was SharePoint web configuration settings has Identity Impersonation set as true.

If impersonation is set as true, then IIS uses the ‘NT AUTHORITY\IUSR’ but if disabled IIS will run under whatever account been set in the identity pool.

So one way of fixing the issue was setting impersonation as false.

Hope it helps.



Filed under: CRM 2011, CRM 2013, SharePoint 2013 Tagged: CRM, CRM 2011, Microsoft Dynamics CRM, SharePoint 2013

This was originally posted here.

Comments

*This post is locked for comments