Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Sharepoint 2013 An exception occurred when trying to issue security token

Posted on 2016-11-16
11
Medium Priority
?
1,590 Views
Last Modified: 2016-11-26
cant access central admin or any site

event id 8306 : Sharepoint foundatition, Claims authentication
An exception occurred when trying to issue security token: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401).



Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileLoadException
Stack:

Server stack trace:
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)




An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/922178507/ROOT

Process ID: 15328

Exception: System.IO.FileLoadException

Message: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)

StackTrace:
Server stack trace:
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
0
Comment
Question by:oompaloompa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
11 Comments
 
LVL 19

Expert Comment

by:Walter Curtis
ID: 41889941
Here is one thing to check that might help - make sure the IIS App Pool is running a user that has access to SharePoint and SQL.

Hope that helps...
0
 

Author Comment

by:oompaloompa
ID: 41889951
yes, it has access to sql, and that is verified

this is not new installation, it stopped working after restart
0
 

Author Comment

by:oompaloompa
ID: 41889959
found this https://blogs.technet.microsoft.com/sykhad-msft/2012/02/24/sharepoint-2010-nailing-the-error-the-security-token-service-is-unavailable/
trying to reprovision but stuck at $h.Provisioning() , it just stands here , how long should it take
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
LVL 19

Expert Comment

by:Walter Curtis
ID: 41890008
I don't know exactly how long it will take, but it could be upwards of 15 minutes or so, depending upon the type of system it is running on. The article looks very good though.

...
0
 

Author Comment

by:oompaloompa
ID: 41890303
nothing, went thru the article , recreated services  and still cant access sites.
http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc works fine
0
 
LVL 19

Expert Comment

by:Walter Curtis
ID: 41890379
Usually after a restart the service account can be an issue. I know you said it works fine access SQL, but check the account anyway in AD to make sure it is not now disabled or the password has expired. I know, it is set to never expire and the account is enabled, but never hurts to check I suppose. It has bitten me before.

Good luck...
0
 

Expert Comment

by:GAURAV SINGH
ID: 41890935
Can you share the result what happens when you browse central admin site from IIS directly?
Try to re-enter the password under the identity section of the site for the account which is running the site application pool.
Do an iisreset and let me know the outcome.
0
 

Author Comment

by:oompaloompa
ID: 41890936
For ca i get 404, for created site i get error 500, i did entwr credentials again, accounts are not locked and password are ok
0
 

Accepted Solution

by:
oompaloompa earned 0 total points
ID: 41891265
there were missing registry keys, maybe from some .NET update ?

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework’, create a new ‘DWORD (32-bit) Value’ named "LoaderOptimization" with a value .

‘HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework‘, create a new ‘DWORD (32-bit) Value’ named "LoaderOptimization" with a value 1.
2
 
LVL 19

Expert Comment

by:Walter Curtis
ID: 41891596
Glad you got it fixed. The updated made changes, but they didn't kick in until the restart. Been there, done that. Don't you hate it when that happens!

Good find...
0
 

Author Closing Comment

by:oompaloompa
ID: 41902213
resolved with MS support
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question