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

标签 sharepoint sharepoint-2013 windows-server-2012-r2

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

我附上了隔夜应用于我们服务器的 Windows 更新的屏幕截图 enter image description here

 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 

最佳答案

我在 Sitecore 上开发时遇到了同样的异常,iisreset 解决了这个问题。

关于sharepoint - 加载此程序集将产生与其他实例不同的授权集。 (HRESULT : 0x80131401) 的异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42240956/

相关文章:

apache - Apache(也许是 Tomcat)如何重定向到特定文件

共享点 2013 : Inserting image on page javascript csom

javascript - 使用 Javascript CSOM 在 SharePoint 2013 中设置搜索中心 URL

jquery - 如何在嵌套表中使用 jQuery .has()

powershell - 使用 Powershell 和 TaskManager 在 Sharepoint 中设置多用户字段

c# - 使用 Web 服务将文件上传到 Sharepoint 2013 - 对象引用未设置为对象的实例

azure - Windows Server 2012 (Azure) 上的 Umbraco 7.1.9

iis - Inno Setup CreateOleObject ('IISNamespace')在 Windows Server 2012 上引发异常

sharepoint - 删除网站集的问题

sharepoint - 创建自定义字段类型和自定义内容类型