简体   繁体   English

无法加载文件或程序集,无法验证强名称签名

[英]Could not load file or assembly, Strong name signature could not be verified

I am having a nightmare :(我做噩梦了:(

I developed a website in MVC using .Net 4.5.1 and it been working for months and after i updated the code (just one string line) it suddenly crashed and nothing is working.我使用 .Net 4.5.1 在 MVC 中开发了一个网站,它已经工作了几个月,在我更新了代码(只有一个字符串行)之后,它突然崩溃了,没有任何效果。

The problem seems to be in the bin folder or references because every time i run the application i get this error:问题似乎出在 bin 文件夹或引用中,因为每次运行应用程序时都会出现此错误:

Could not load file or assembly 'XXXXXX' 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)`

Where XXXXXX could be ANY referenced library such as其中 XXXXXX 可以是任何引用的库,例如

HtmlAgilityPack.dll
Microsoft.Web.Infrastructure.dll
System.Web.Helpers.dll
System.Web.Mvc.dll
System.Web.Razor.dll
System.Web.Webpages.Deployment.dll
System.Web.Webpages.dll
System.Web.Webpages.Razor.dll
TSPWebBased.dll

See?看? Any kind of library which i have NEVER touched or altered.我从未接触或改变过的任何类型的图书馆。

And the thing that is really driving me CRAZY is that the project works PERFECTLY on my computer but when i try to deploy it to a VPS or shared hosting or managed hosting it fails.真正让我发疯的是,该项目在我的计算机上完美运行,但是当我尝试将其部署到 VPS 或共享主机或托管主机时,它失败了。

I installed many versions of .Net but no luck.我安装了许多版本的.Net,但没有运气。

I spent days trying to solve it and no luck.我花了几天时间试图解决它,但没有运气。 I have searched google and read all the articles about this problem in stackoverflow but nothing helped me.我搜索了谷歌并阅读了 stackoverflow 中有关此问题的所有文章,但没有任何帮助。

I would really really appreciate it if anybody could tell me what the HECK is this thing?如果有人能告诉我这到底是什么东西,我真的很感激?

Thank you.谢谢你。

EDIT 1编辑 1

I read this issue from HERE and i feel like this is close to my issue.我从这里读到了这个问题,我觉得这很接近我的问题。

EDIT 2 (SOLVED)编辑 2(已解决)

I just had to re install my operating system (Windows 8) because when i was installing Visual Studio the installation was interrupted and DLLs were corrupted.我只需要重新安装我的操作系统(Windows 8),因为当我安装 Visual Studio 时,安装被中断并且 DLL 被损坏。

I recommend that you always use TFSVC(Team Foudation Server) or git(GitHub) for source control, My solution was to delete my project directory on my local machine and clone the project from my remote git repository.我建议您始终使用 TFSVC(Team Foudation Server) 或 git(GitHub) 进行源代码控制,我的解决方案是删除本地计算机上的项目目录并从远程 git 存储库中克隆项目。 This saved me a lot of time.这为我节省了很多时间。 I hope this works for you guys... Happy coding...我希望这对你们有用......快乐的编码......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法加载文件或程序集“ EntityFramework”或其依赖项之一。 无法验证强名签名 - Could not load file or assembly 'EntityFramework' or one of its dependencies. Strong name signature could not be verified 如何修复,无法加载文件或程序集“XXX”或其依赖项之一。 无法验证强名称签名 - How to Fix, Could not load file or assembly 'XXX' or one of its dependencies. Strong name signature could not be verified 错误-无法验证强名签名。 运行应用程序时 - Error - strong name signature could not be verified. When running application asp.net 3.5应用程序 - 无法加载程序集,“强名称签名无法验证”,仅在部署到客户端时 - asp.net 3.5 app - can not load assemblies, “Strong name signature could not be verified”, only when deploying to client 无法加载文件或程序集 'Microsoft.mshtml ...强名称验证失败 - Could not load file or assembly 'Microsoft.mshtml ... Strong name validation failed .net无法加载文件或程序集MySql.Data。 强名验证失败(0x8013141A) - .net Could not load file or assembly MySql.Data. Strong name validation failed (0x8013141A) 无法加载文件或程序集-添加了计算机名 - Could not load file or assembly - Added computer name 无法加载文件或程序集 - Could not load file or assembly 无法加载文件或程序集 - Could not load file or assembly 无法加载文件或程序集 - Could not load file or assembly
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM