[英]How to run one web application that uses dlls with different minor builds?
I have a CMS that uses one version of Telerik dlls, and have a bunch of user controls that have to be added to this CMS system that use another version of the same dlls. 我有一个使用Telerik dll版本的CMS,并且有一堆必须添加到使用另一个版本的相同dll的用户控件。 These dlls differ in the minor build.
这些dll在次要版本中有所不同。
Is there a way I can get them to work together without running into the dreaded "Could not load file or assembly located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)" 有没有一种方法可以使它们一起工作,而无需遇到可怕的“无法加载文件或程序集,而程序集的清单定义与程序集引用不匹配。(来自HRESULT的异常:0x80131040)”
I tried adding the probing element , that did not seem to work either, as I run into the error above. 我尝试添加探测元素 ,但似乎也不起作用,因为遇到了以上错误。
If the newer DLLs are backward compatible with the older ones, use assembly redirection to force the references to the older DLLs to load the newer one instead. 如果较新的DLL与较旧的DLL向后兼容,请使用程序集重定向强制对较旧DLL的引用来加载较新的DLL。 Then you only need the newer set of DLLs.
然后,您只需要较新的一组DLL。
http://msdn.microsoft.com/en-us/library/7wd6ex19%28VS.71%29.aspx http://msdn.microsoft.com/zh-CN/library/7wd6ex19%28VS.71%29.aspx
As far as I'm aware, there's no way to load multiple versions of the same assembly within the same app domain. 据我所知,无法在同一应用程序域中加载同一程序集的多个版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.