不匹配装配和产品版本

编程入门 行业动态 更新时间:2024-10-25 00:36:38
本文介绍了不匹配装配和产品版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想使用Ajax控件工具包在asp网站。我从我的previous示例项目中的一个复制的DLL。它具有以下细节

I am trying to use Ajax control toolkit in asp website. I copied the dll from one of my previous sample project. It has the following details

Assembly Version – 3.5.40412.0 File Version - 3.5.40412.2 Internal Name: Ajax Control Toolkit Language : Neutral Product Version - 3.5.40412.2

当我添加引用该组件,它表现为在参考文献列表中的AjaxControlToolkit中-3.5.40412.2。当我运行的解决方案,我得到一个FileLoadException:

When I add reference to this assembly, it appears as "AjaxControlToolkit-3.5.40412.2" in the reference list. When I run the solution, I get a FileLoadException:

无法加载文件或程序集AjaxControlToolkit中,3.5.40412.2或它的某一个依赖。

Could not load file or assembly 'AjaxControlToolkit-3.5.40412.2' or one of its dependencies.

在位于集清单定义不匹配的程序集引用。 (从HRESULT异常:0x80131040)

The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

我认为这个问题是在大会版本和文件版本的区别。是这样吗?我们怎样才能克服它?

I think the problem is with the difference in Assembly version and File version. Is it so? How can we overcome it?

推荐答案

编辑Web.config文件,删除引用,这是不正常运行所需的:

Edit the web.config file to remove the reference, which is not required for normal operation:

1 - 在您的网站的根目录中打开web.config文件

1 - Open the web.config file in the root of your site

2 - 查找以下行,并注释掉():XXXXX-是您的程序集名称

2 - Find the following line and comment it out():xxxxx-is your assembly name.

<add assembly="xxxxx", Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

3 - 保存并关闭Web.config文件,然后重试

3 - Save and close the web.config file and try again

参考链接:manual.aspdotnetstorefront/p-1118-could-not-load-file-or-assembly-microsoftwebservices3-version3000-cultureneutral-publickeytoken31bf3856ad364e35.aspx

更多推荐

不匹配装配和产品版本

本文发布于:2023-10-18 23:55:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1505797.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不匹配   版本   产品

发布评论

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

>www.elefans.com

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