Share via


The Security Token Service is not available. The Security Token Service is not issuing tokens. The service could be malfunctioning or in a bad state

The Security Token Service is not available. The Security Token Service is not issuing tokens. The service could be malfunctioning or in a bad state.

(OR)

An exception occurred when trying to issue security token: Could not connect to http://localhost:2843/SecurityTokenServiceApplication/securitytoken.svc. TCP error code 10061: No connection could be made because the target machine actively refused it.

(OR)

The Managed Metadata Service '' is inaccessible.

Solution:

Go to InetMgr (IIS Manager)

  1. Start the "SharePoint Web Services" site
  2. Start the "SharePoint Web Services Root" application pool
  3. Do an IIS reset

                                 
                                                     http://3.bp.blogspot.com/-7IK7fJhLNvw/UtNyWCJdqsI/AAAAAAAABMQ/RU66zFL16Hs/s320/1.bmp

                                                    http://1.bp.blogspot.com/-UTu2d-VdkH0/UtNyVCRi7OI/AAAAAAAABMM/P-MzeWOJ_wc/s320/2.bmp

Note: Resolved the issue by above method. If you find a different solution, please report it as a comment on this post. This will be useful to the SharePoint Community. Be sure to double-verify it: undo your solution and verify that the problem comes back, then redo it and verify that the problem goes away.

See Also

  1. SharePoint Resources on the TechNet Wiki
  2. SharePoint 2013 Portal
  3. SharePoint 2013 - Service Applications
  4. SharePoint 2013 - Resources for Developers
  5. SharePoint 2013 - Resources for IT Pros