不匹配装配和产品版本 [英] Mismatch in Assembly and Product Version

查看:154
本文介绍了不匹配装配和产品版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am trying to use Ajax control toolkit in asp.net 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

参考链接:<一href="http://manual.aspdotnetstorefront.com/p-1118-could-not-load-file-or-assembly-microsoftwebservices3-version3000-cultureneutral-publickeytoken31bf3856ad364e35.aspx" rel="nofollow">http://manual.aspdotnetstorefront.com/p-1118-could-not-load-file-or-assembly-microsoftwebservices3-version3000-cultureneutral-publickeytoken31bf3856ad364e35.aspx

这篇关于不匹配装配和产品版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆