gpt4 book ai didi

asp.net-mvc-4 - 从nuget升级到webgrease 1.5.1.25624后,出现System.IO.FileLoadException

转载 作者:行者123 更新时间:2023-12-03 07:40:26 27 4
gpt4 key购买 nike

我是asp.net死亡页面,这是我使用nuget升级了webgrease和mvc4的bootstrap之后出现的。

Server Error in '/' Application.


Could not load file or assembly 'WebGrease' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045) 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: Could not load file or assembly 'WebGrease' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

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.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'WebGrease' could not be loaded.


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18045

最佳答案

使用包管理器控制台强制卸载包

uninstall-package -f WebGrease

然后使用以下命令安装以前的版本1.3.0

install-package WebGrease -Version 1.3.0

打开您的 Web.config 文件并替换运行时标记下的以下依赖项

<dependentAssembly>
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.3.0.0" newVersion="1.3.0.0" />

关于asp.net-mvc-4 - 从nuget升级到webgrease 1.5.1.25624后,出现System.IO.FileLoadException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17670675/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com