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:
- Start Menu > Control Panel > Uninstall A Program
- Select View Installed Updates from the top left hand corner.
- Find Security Update for Microsoft Windows (KB2756920) in the list and uninstall it.
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.
- SharePoint 2010.