AJAX.NET 1.0 Configuration Error 解决方法

开发环境:XP-sp2; VS 2005; IIS 5.1; ASP.NET 2.0 AJAX Extensions

测试环境:Windows Server 2003-sp1; IIS 6.0;

在本地我们调试运行AJAX.NET程序完全没有问题,但是一旦上传到服务器就会出现很多Web.config文件异常。以下是两个最为典型的异常信息:

Configuration Error
Description: An error occurred during the processing of a configuration file required to service 
this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Could not load file or assembly 
'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 系统找不到指定的文件。

Configuration Error 
Description: An error occurred during the processing of a configuration file required to service 
this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Could not load file or assembly 
'System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 系统找不到指定的文件。

这个问题产生的原因还是出在微软本身,原本我们发布网站的时候都会自动生成dll文件到程序的bin目录。但是AJAX.NET 1.0无法自动添加关键dll文件到bin目录。因此需要我们手动添加。

方法很简单,找到你安装AJAX.NET 1.0的目录,一般是C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025

把里面的System.Web.Extensions.dll文件和System.Web.Extensions.Design.dll文件复制到bin目录下就可以了。当然复制哪个文件要看你Web.config文件的异常信息而定。

posted on 2007-04-07 19:40 xh3 阅读(3456) 评论(5) 编辑 收藏

评论

#1楼  回复 引用   

#2楼  回复 引用   

Thank you !!
2007-08-17 10:50 | User[未注册用户]

#3楼  回复 引用   

还是不能够解决啊?
2007-12-04 16:59 | ben23[未注册用户]

#4楼  回复 引用   

我把 Web.config 里面需要应用的DLL 都放进BIN 文件夹了,不管是拷贝进去还是 添加现有项加进去,都不行。奇怪的是,有许多DLL 无法通过添加 引用的方法加入,只能添加现有项加进去。

在BIN 文件夹中确实存在那些文件了,并且重新整站编译过,一旦发布到服务器,都还是提示上面的问题。
2008-01-01 12:47 | keiwen[未注册用户]

#5楼  回复 引用   

我的问题也和4楼的一样
在BIN 文件夹中确实存在那些文件了,并且重新整站编译过,一旦发布到服务器,都还是提示上面的问题。
2008-04-21 18:07 | 天涯浪子1[未注册用户]

导航

搜索

 
 

常用链接

文章档案(1)

积分与排名

  • 积分 - 86082
  • 排名 - 1187