When to re-provision the Security Token Service Application in SharePoint

If you’re seeing entries like this in your logs, you might want to re-provision the SecurityTokenServiceApplicationPool

If you’re installing PowerPivot and you are getting an error when installing PowerPivot on SharePoint that reads http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc had an innerException and or an incorrect SOAP address.

 

To reset the STS run the following lines:

Then run IISRESET