HTTP 500 Internal Server Error in newly built SP 2013 farms
We have multiple new SharePoint 2013 farms built on Windows Server 2012 with a fairly standard, out of the box build. On all of these servers, we frequently get HTTP 500 Internal Server Errors.  This frequently happens after the server is restarted or after the nightly app pool recycle.  An IISReset usually fixes it but it may take several attempts before it takes.  The ULS logs show some errors but a search online doesn't seem to help.  We have production 2010 farms that are not experiencing this.  It is only happening on the new 2013 farms.  Two error messages we see in the ULS logs are listed below.  Any hints, tips, or assistance otherwise is much appreciated.  Thank you!

-----

SPSecurityContext: Get trust client failed with exception: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.IdentityModel.Extensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=69c3241e6f0468ca' or one of its dependencies. Provider type not defined. (Exception from HRESULT: 0x80090017)  File name: 'Microsoft.IdentityModel.Extensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=69c3241e6f0468ca' ---> System.Runtime.InteropServices.COMException (0x80090017): Provider type not defined. (Exception from HRESULT: 0x80090017)    
 at Microsoft.SharePoint.SPSecurityContext.GetTrustChannel()    
 at Microsoft.SharePoint.SPSecurityContext.SecurityTokenForContext(Uri context, Boolean bearerToken, SecurityToken onBehalfOf, SecurityToken actAs, SecurityToken delegateTo, SPRequestSecurityTokenProperties properties)

An exception occurred when trying to establish endpoint for context: Could not load file or assembly 'Microsoft.IdentityModel.Extensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=69c3241e6f0468ca' or one of its dependencies. Provider type not defined. (Exception from HRESULT: 0x80090017).

-----


September 5th, 2013 6:30pm

Hi t3hcr,

Is the error event ID "8305"?

Please check the following article with adding the Application pool account in the "Impersonate a client after authentication" user right from Local Security Policy, then reboot server and check result again.

http://manojssharepointblog.wordpress.com/2013/03/27/sharepoint-2013-http-500-internal-server-error-while-trying-to-browse-to-a-sharepoint-site/

http://social.technet.microsoft.com/Forums/sharepoint/EN-US/6e2ec55f-8c4a-43a6-ad6d-fc90792bac82/native-impersonation-module

Thanks

Free Windows Admin Tool Kit Click here and download it now
September 6th, 2013 10:50am

Daniel,

Thanks for your response.  

Event logs do not show event ID 8305.  Also, all of the app pool accounts are in the IIS_IUSRS group which has the Impersonate right.  


September 6th, 2013 1:58pm

Hi t3hcr

We currently have the same problem. Were you able to find the cause or a solution? 

I would be really grateful to hear anything new on the issue.

Best Regards

John

Free Windows Admin Tool Kit Click here and download it now
April 7th, 2014 8:55am

Same issue but this was on a server previously setup and running stable.

Not sure what caused it to start happening.  SharePoint update maybe?

Setting impersonate on all the accounts did not help.

 Greg

April 17th, 2015 10:28am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics