无法加载文件或程序集“system.web.helpers”或其依赖项之一 [英] Could not load file or assembly 'system.web.helpers' or one of its dependencies

查看:100
本文介绍了无法加载文件或程序集“system.web.helpers”或其依赖项之一的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1)异常详细信息:

System.IO.FileLoadException:无法加载文件或程序集System.Web.Helpers或其依赖项之一。定位的程序集的清单定义与程序集引用不匹配。 (HRESULT异常:0x80131040)



有时候它的射击低于异常:

2)无法加载文件或程序集'System.Web .WebPages.Razor,



我尝试过:



我在运行时使用visual studio 2015框架。

用下面的程序集检查。

< dependentAssembly>

< assemblyIdentity name =System.Web.HelperspublicKeyToken =31bf3856ad364e35 />

< bindingRedirect oldVersion =0.0.0.0-2.0.0.0newVersion =1.0.0.0/>

< / dependentAssembly>

< dependentAssembly>

< assemblyIdentity name =System.Web.MvcpublicKeyToken =31bf3856ad364e35/>

< bindingRedirect oldVersion =1.0.0.0-4.0.0.0newVersion =4.0.0.0/>

< / dependentAssembly>





我还检查了几个与此异常相关的线程,但未找到结果。请检查以下异常并提前给出解决方案。

1)Exception Details:
System.IO.FileLoadException: Could not load file or assembly 'System.Web.Helpers' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Some times its shooting below exception:
2)Could not load file or assembly 'System.Web.WebPages.Razor,

What I have tried:

I'm using visual studio 2015 framework while in runtime.
checked with below assemblies.
<dependentAssembly>
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="1.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
</dependentAssembly>


I also checked several threads related to this exception however not found results. Please check below exceptions and give solutions thanks in advance.

推荐答案

右键单击并查看参考文献中可用的Dll属性。
Right click and look in to the properties on the Dll available in references.

这篇关于无法加载文件或程序集“system.web.helpers”或其依赖项之一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆