The most obvious symptom is that the management center site of SharePoint 2010 cannot be opened and the application pool is in the stopped status.
First, check the application event log of the machine to see if there are two events:
Event ID 8306
-------------
An exception occurred when trying to issue security token:
The requested service, 'HTTP: // localhost: 8888/securitytokenserviceapplication/securitytoken. SVC 'could not be activated. See the server's Diagnostic Trace logs for more information.
Event ID 3
---------------
Webhost failed to process a request.
Sender Information:
System. servicemodel. servicehostingenvironment + hostingmanager/17653682
Exception: system. servicemodel. serviceactivationexception:
The Service '/securitytokenserviceapplication/securitytoken. SVC 'cannot be activated due to an exception during compilation. the exception message is: exception has been thrown by the target of an invocation .. ---> system. reflection. targetinvocationexception: exception has been thrown by the target of an invocation. ---> system. invalidoperationexception: The farm is unavailable.
At Microsoft. Sharepoint. Administration. Claims. spsecuritytokenservicemanager. get_local ()...
Solution
================
Check the advanced settings of securittokenserviceapplicationpool and check whether the Enable 32-bit applications are true. If yes, change it to false.
Solve the problem.