您的位置:首页 > 其它

在本地我们调试运行AJAX.NET程序完全没有问题,但是一旦上传到服务器就会出现很多Web.config文件异常

2007-06-21 17:01 756 查看
在本地我们调试运行AJAX.NET程序完全没有问题,但是一旦上传到服务器就会出现很多Web.config文件异常。以下是两个最为典型的异常信息:
[align=left] 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. [/align]
[align=left]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. 系统找不到指定的文件。[/align]
[align=left]------------------------------------------------
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. [/align]
[align=left]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. 系统找不到指定的文件。[/align]
[align=left]
A:这个问题产生的原因还是出在微软本身,原本我们发布网站的时候都会自动生成dll文件到程序的bin目录。但是AJAX.NET 1.0无法自动添加关键dll文件到bin目录。因此需要我们手动添加。[/align]
[align=left]方法很简单,找到你安装AJAX.NET 1.0的目录,一般是C:/Program Files/Microsoft ASP.NET/ASP.NET 2.0 AJAX Extensions/v1.0.61025[/align]
[align=left]把里面的System.Web.Extensions.dll文件和System.Web.Extensions.Design.dll文件复制到bin目录下就可以了。当然复制哪个文件要看你Web.config文件的异常信息而定。 [/align]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐