.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Articles >> SharePoint >> Post New Resource Bookmark and Share   

 Subscribe to Articles

The Security Token Service is not available

Posted By:Dhiraj Ranka       Posted Date: January 04, 2011    Points: 75    Category: SharePoint    URL: http://www.dotnetspark.com  

This is article guides you to how to solve Security Token Service availability problem

Review problems and solutions

This is the problem reported by SharePoint 2010 Beta after successful installation. This problem occurs due to missing WCF Hotfix KB 976462. SharePoint 2010 RTM installation has included this hotfix as it's one of the prerequisites, the same you can check in Windows updates from control panel. Before doing Hotfix installation you can confirm whether or not the service is working by browsing to http://localhost:/SecurityTokenServiceApplication/securitytoken.svc The Security Token Service is a Web service that issues security tokens. If this gives you and specific error then you can troubleshoot the same, or else you can follow this. And if it is there then don't re-install it. But if not then please install this and reboot your system (update needs reboot) and confirm from the windows updates and it is successfully installed.

Windows Update

The sharepoint Health Analyzer report it only as warnings, but it is actually a fatal error as it results in failure of all claim aware services such as search service, for example: When a user start searching, WFE needs to talk to Search query componet, and if the Search query is hosted in a different server, WFE needs its local Security Token Service (STS) to collect claim, and then sends the claim to Search query component Server. Obviously unavailability of STS on WFE will break things totally.

What is the fix then?

STS is neither a SharePoint service, nor a window service, but actually a WCF web service, so first to check IIS if this web service or its application pool is running, and if they are, try to restart and if that still does not solve the problem. You need to re-provision STS service application. The STS service application is provisioned during sharepont configuration, and is not click-able from UI:

Security Token Service Application View

In order to re-provision the STS from Powershell:

$sts = get-spserviceapplication -identity {id of sts}

Additionally, disconnecting servers from farm and rejoining them can also fix this STS problem. After doing all this we can check in the health analyzer whether our problem got solved or not. After looking at the screen shot it does seems that the problem is solved.

Review problems and solutions without STS
Okay, the screen shots shows lot of other issues, no worries, I will solve them one by one some time later.

 Subscribe to Articles


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend