无法在ASP.NET中加载文件或程序集Telerik.Web.UI [英] Could not load file or assembly Telerik.Web.UI in ASP.NET
问题描述
我将telerik版本更新为2012.2.607.35,当我将其更新为版本2015.2.623.45
I had telerik version 2012.2.607.35 When I update it to version 2015.2.623.45
我收到此错误:
无法加载文件或程序集'Telerik.Web.UI,版本= 2012.2.607.35,文化=中性,公钥令牌= 121fae78165ba3d4'或其依赖项之一.位于程序集的清单定义与程序集引用不匹配.(来自HRESULT的异常:0x80131040)
Could not load file or assembly 'Telerik.Web.UI, Version=2012.2.607.35, Culture=neutral, PublicKey Token=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
我在项目参考中将所有参考telerik都替换为版本2015.2.623.45,但是错误仍然存在.
I replaced all reference telerik to version 2015.2.623.45 in project references but the error exist yet.
推荐答案
虽然程序集绑定重定向是解决此问题的一种方法,如答案所示,但我建议您查找完全合格的程序集引用,并使其不为标准.-完全合格.它可能是web.config或用户控件中的Register指令.这样做会使将来的更新更加容易,否则除非您也更新bindingRedirect,否则下次升级时会遇到相同的错误.
While the assembly binding redirect is a way to solve this, as suggested by the answer, I would advise you to find the fully qualified assembly reference and make it non-fully qualified. It is likely to be a Register directive in the web.config or in a user control. Doing that will make future updates easier, otherwise you will get the same error the next time you upgrade unless you also update the bindingRedirect.
这篇关于无法在ASP.NET中加载文件或程序集Telerik.Web.UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!