我想使用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
更多推荐
不匹配装配和产品版本
发布评论