无法加载文件或程序集'System.Web.Extensions [英] Could not load file or assembly 'System.Web.Extensions

查看:74
本文介绍了无法加载文件或程序集'System.Web.Extensions的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我的网站项目在Framework 2.0上运行,它是使用vs2005开始构建的.之后,我将其转换为vs2008,目标框架为2.0,一切正常.

我还具有( System.Web.Extensions, 版本= 1.0.61025.0) .

以同样的方式,在运行Framework 2.0的相同生产环境下,最近我已将网站转换为具有相同目标Framework 2.0的vs2010,但现在出现了问题.

当我使用vs 2010构建网站并发布该网站时,访问我的网站时会出现这些错误

"无法加载文件或程序集'System.Web.Extensions,版本= 4.0.0.0 ,Culture = neutral,PublicKeyToken = 31bf3856ad364e35"或其依赖项之一.找到的程序集的清单定义与程序集引用不匹配. (例外 来自HRESULT:0x80131040).

我已删除所有引用,并再次将System.Web.Extensions.dll版本1.0指向BIN,它仍然是相同的错误.

但是当我回到vs2008并再次构建它并发布到生产服务器时,它运行良好.

我一直在寻找解决方案,但是没有找到任何解决方案

任何专家对此都有解决方案吗?

我的情况与此链接中讨论的情况完全相同 http://forums.asp.net/t/1605823.aspx/1/10   ;,似乎没人知道解决方案

谢谢

解决方案

您能发布整个web.config吗?


Hi all,

My website project is running on framework 2.0, it was started built using the vs2005. After that, i've converted it to the vs2008 and the target framework is 2.0, everything works fine.

I also have the (System.Web.Extensions, Version=1.0.61025.0) in my BIN folder.

Same way, under the same production environment running the framework 2.0, recently I have converted website to the vs2010 with the same target Framework 2.0 also, now it has problem.

When i build the website using vs 2010 and publish it, i get these error when i access my site

"Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)”.

I've deleted all the reference and manually point System.Web.Extensions.dll version 1.0 to the BIN again, it still the same error.

But when i back to vs2008 and build it again and publish to the production server it is working great.

I've been looking around for the solution, but I failed to get any solution

Any expert have solution on this??

My condition exactly same as what was discuss here i this link http://forums.asp.net/t/1605823.aspx/1/10 , seems nobody know the solution

Thanks

解决方案

can you post the whole web.config please.


这篇关于无法加载文件或程序集'System.Web.Extensions的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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