An exception occurred when trying to issue security token in SharePoint

I have tried to open SharePoint portal with Claims Authentication that was worked properly! but Suddenly, I got the below error:

An exception occurred when trying to issue security token: The requested service, ‘http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc/ actas’; could not be activated. See the server’s diagnostic trace logs for more information.

I checked the log file and Event Viewer and seems that

Secure Token Service is failing

I asked my team What’s the last action they did ? the answer was only Server Restart.

After a long trip that took more than one day, we have tried to

  • Run SharePoint configuration wizard,
  • Provision Secure Token service,
  • Check farm account password,
  • Restart the server,

Searching over the internet and everything you can imagine ! with no avail 😦

Finally, we discovered that during server restart operation, the automatic update downloads and install this Security Update for Microsoft Windows (KB2756920) that effect on Secure Token Service.

Therefore, we have removed this update by doing the following:

  1. Start Menu > Control Panel > Uninstall A Program
  2. Select View Installed Updates from the top left hand corner.
  3. Find Security Update for Microsoft Windows (KB2756920) in the list and uninstall it.

An exception occurred when trying to issue security token: The requested service,

Note:  It’s recommended to disable automatic update on the Production farm. and coordinate with the infra team on your company to download and install the Windows updates after reviewing the fixes list and making sure that these patches will not effect on your SharePoint farm.

Note: The SharePoint Security fixes are included in MU/WU updates, these security updates will not be reflected on your farm until you run the SharePoint Configuration Wizard.


Applies To
  • SharePoint 2010.
Advertisements

One thought on “An exception occurred when trying to issue security token in SharePoint

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s