加载此程序集将产生与其他实例不同的授权集。 (HRESULT 的异常:0x80131401)

问题描述 投票:0回答:4

我们的 SharePoint 2013 服务器已使用 Windows 更新进行了修补,从那时起我们收到以下错误。我们重新启动了服务器,手动删除了 windows 更新,然后重新启动了服务器,恢复到 windows 更新之前的 windows 服务器副本,但错误仍然存在。我们还从 Windows 目录中删除了临时文件,但没有任何帮助。

我附上了夜间应用到我们服务器的 Windows 更新的屏幕截图

 Loading this assembly would produce a different grant set from other     instances. (Exception from HRESULT: 0x80131401) 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

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

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)]
System.Linq.Enumerable.Any(IEnumerable`1 source) +0
       System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromAssemblyCollection(IEnumerable`1 assemblies, Boolean buildingFromCache) +210
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +98
System.Web.Compilation.BuildManager.ExecutePreAppStart() +139
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1005

[HttpException (0x80004005): Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +646
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +779


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET    Version:4.0.30319.36366 
sharepoint sharepoint-2013 windows-server-2012-r2
4个回答
62
投票

我在 Sitecore 上开发时遇到了同样的异常,并且

iisreset
解决了这个问题。



1
投票

我能够通过进入绑定 - >编辑,然后删除“localhost”作为站点的主机名来解决这个问题。之后工作。


-2
投票

如果已启用,请尝试禁用“远程桌面” (example)

运行命令

isreset
并更改注册表后,我的问题就解决了。

版本信息:Microsoft .NET Framework 版本:4.0.30319; ASP.NET版本:4.8.4075.0

© www.soinside.com 2019 - 2024. All rights reserved.