简体   繁体   English

如何运行一个使用具有不同次要版本号的dll的Web应用程序?

[英]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.

相关问题 如何与其 DLL 共享主应用程序的主要和次要版本? - How to share major and minor version of the main application with its DLLs? 如何将所有dll合并为一个应用程序? - How to merge all dlls into one for an application? 发布同一应用程序的不同版本(功能减少的版本) - Releasing different builds of same application (One with reduced functionality) 一个带有两个dll的Web应用程序。 一个dll依赖于另一个。 为什么必须同时更新两个DLL? - One web application with two dlls. One dll is dependent upon the other. Why do I have to update both DLLs? 如何在一个项目中创建不同的DLL? - How can I create different DLLs in one project? 如何在使用Crystal Reports的PC上运行应用程序 - How to run an application on PC that uses crystal reports 如何为MVC Web应用程序的不同构建创建不同的启动 - How to create diferent startups for diferent builds of mvc web application 是否可以在不同文件夹中分离 C# 可执行文件及其依赖 dll 并运行应用程序? - Is it possible to separate a C# executable and its dependent dlls in different folder and run the application? 如何在不同的Web应用程序中使用一个angularjs应用程序? - How to use one angularjs app in a different web application? 将Web应用程序项目转换为单独的DLL - Turning Web Application Projects into separate DLLs
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM