Monday, October 11, 2010

Error: 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.

Error:


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:32843/SecurityTokenServiceApplication/securitytoken.svc. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:32843. 

(Or)

The Managed Metadata Service '' is inaccessible.

Reason:
These are all unusual errors and you will get these kind of errors, if you have installed the SSL certificate on your SharePoint server. In my situation, I have installed SSL & Lync Server 2010 RC in my SharePoint 2010 server. 

Solution:
I found an very nice post about this issue in the below URL:

But unfortunately, the above post is not useful for me. Anyhow, it gave me some ideas about the actual issue. Finally I have found an simple solution. 

1. Go to InetMgr
2. Just start the "SharePoint Web Services" site and "SharePoint Web Services Root" application pool as per the below screenshot.
















3. To make sure everything, do the "IISReset". 


Thats it....

11 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. Hi I activated that service...But all my site,visual studio ,sql ,Microsoft office and no item in administrative tools ...every thing is collapsed....

    Error log shows Error:
    The identity of application pool b741904631e547a9b6786cdb591d0e67 is invalid. The user name or password that is specified for the identity may be incorrect, or the user may not have batch logon rights. If the identity is not corrected, the application pool will be disabled when the application pool receives its first request. If batch logon rights are causing the problem, the identity in the IIS configuration store must be changed after rights have been granted before Windows Process Activation Service (WAS) can retry the logon. If the identity remains invalid after the first request for the application pool is processed, the application pool will be disabled. The data field contains the error number.

    How can i recover this problem??

    ReplyDelete
  4. Aravind,

    Try the step 3, as I mentioned in http://sensoft2000-sharepoint.blogspot.com/2009/08/error-http-404-file-not-found-in-moss.html & also, restart the IIS .

    This may be helpful to you.

    ReplyDelete
  5. This comment has been removed by a blog administrator.

    ReplyDelete
  6. Hi,
    I'm was SharePoint 2010 in test/educational environment and I have been facing the issue since I have migrated from "failing" server to new one. After going trough all possible blogs you can imagine I ended up in your blog which solved my issue. Thank you!

    ReplyDelete
  7. That did it for me as well, started app pool and IISReset, finally worked.

    ReplyDelete
  8. thanks it worked for me. you have saved my day

    ReplyDelete