无法加载文件或程序集“system.web.helpers”或其依赖项之一

编程入门 行业动态 更新时间:2024-10-28 20:28:54
本文介绍了无法加载文件或程序集“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”或其依赖项之一

本文发布于:2023-11-03 06:16:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1554423.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:或其   加载   文件   程序   system

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!