Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 无法加载文件或程序集,无法验证强名称签名_C#_Visual Studio_Dll_.net Assembly - Fatal编程技术网

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

C# 无法加载文件或程序集,无法验证强名称签名,c#,visual-studio,dll,.net-assembly,C#,Visual Studio,Dll,.net Assembly,我在做恶梦:( 我使用.NET4.5.1在MVC中开发了一个网站,它已经运行了几个月,在我更新代码(只有一行字符串)后,它突然崩溃,什么都不起作用 问题似乎出现在bin文件夹或引用中,因为每次运行应用程序时都会出现以下错误: Could not load file or assembly 'XXXXXX' or one of its dependencies. Strong name signature could not be verified. The assembly may have

我在做恶梦:(

我使用.NET4.5.1在MVC中开发了一个网站,它已经运行了几个月,在我更新代码(只有一行字符串)后,它突然崩溃,什么都不起作用

问题似乎出现在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)`
其中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
看到了吗?任何我从未接触过或改变过的图书馆

真正让我抓狂的是,这个项目在我的计算机上运行得非常好,但当我尝试将它部署到VPS、共享主机或托管时,它失败了

我安装了许多版本的.Net,但运气不好

我花了好几天的时间试图解决这个问题,但没有运气。我搜索过谷歌,在stackoverflow中阅读了所有关于这个问题的文章,但没有任何帮助

如果有人能告诉我这到底是什么东西,我会非常感激的

多谢各位

编辑1

我从中读到这一期,我觉得这已经接近我的期了

编辑2(已解决)


我不得不重新安装我的操作系统(Windows 8),因为在安装Visual Studio时,安装被中断,DLL被损坏。

我建议您始终使用TFSVC(Team Foundation Server)或git(GitHub)对于源代码管理,我的解决方案是删除本地计算机上的项目目录,并从远程git存储库克隆项目。这节省了我很多时间。我希望这对你们有用…编码愉快…

共享主机可能已损坏doen。请与管理员联系?因为在PC上安装.NET版本不会有任何帮助。