In my SharePoint Foundation server, in event viewer we often find error

Id : 8306

An exception occurred when trying to issue security token: The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'NTLM'..

Event Viewr

I configure IIS settings and Provision security token service as per this Link

One annoying thing I found with my Security Token service:

When I opened from IIS > Sharepoint Web service > Security token service > Browse in browser I get a HTTP Error 503. The service is unavailable. error

1 Answer 1


Try this :

$hostSvc = Get-SPServiceHostconfig


$SecToken=Get-SPServiceApplication | where { $_.TypeName -Like “Security Token*”}


You can restart IIS ( IISReset.exe) or use the below PS to restart single IIS Site.

Stop-Website “SharePoint Web Services”

Start-Website “SharePoint Web Services”


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.