懂.net建站的进来 高分送了

来源:百度知道 编辑:UC知道 时间:2024/06/29 23:47:06
懂.net建站的进来 高分送了
sql数据库和aspx的程序都在本地,测试出现这样的错误,何解?求解决方法

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 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件。 (G:\iask\www\web.config line 50) (G:\iask\www\web.config line 70)

Source Error:

Line 68: </httpHandlers>
Line 69: <httpModules>
Line 70: <add name="ScriptModule" type="Microsoft.Web.Services.ScriptModule"/>
Line 71: <add name="BridgeModule" ty

呵呵~~这个问题我以前也碰到过,如果没说错的话,你是在运行的时候就出错了把,很简单的,问题出在你的web.config,应该是运行的时候找不到这个文件所以出错了,你把web.config放到工程的文件夹然后编译应该就可以了。我就是这样解决的。

不知你是用什么数据库的,如果你是用ACCESS,那么把路径放在指定位置即可,如果你用SQL,根据(Parser Error Message: Could not load file or assembly 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件。)错误提示,在命名空间里导入using Data.Sqlclient.

写的很清楚了找不到指定文件。。
你估计是文件路径写错了吧。。最好少用绝对路径多用相对路径。
用绝对路径在代码移植到其他机器上的时候就容易出现这种问题。。。

你的IIS开了吗