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 文件的异常信息而定。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值