今天上午将已经开发完成的应用程序发布到服务上使用时,报出如下的错误信息:
*********************************************************************************************************************************
Server Error in '/' Application.
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. 系统找不到指定的文件。 (D:/WWWSite/1947/WWWRoot/web.config line 57)
Source Error:
|
Source File: D:/WWWSite/1947/WWWRoot/web.config Line: 57
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
*********************************************************************************************************************************
出现这样的报错信息,实是有些意外,可能是在之前使用ASP.NET AJAX控件时并未注意过此种问题的原因吧!经过多方的查证,可采用如下的解决办法来解决这一问题:
找到你安装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目录下,然后在重新编译一下就可以了。