经典爱国电影:ASP!!!没人救我就跳楼了!!!

来源:百度文库 编辑:高校问答 时间:2024/05/02 09:47:01
我用的是2000 server版的
IIS全部设置好了,开始ASP文件还能打开类。
后来在调试嘛。使用access数据库(我的ACCESS是装在D盘p开头的文件夹里数据库DB1放在网页目录下边) 一使用就出问题了。打不开ASP文件了,我再回过头来使用简单的代码调试!!!ASP还是打不开!!下边请看我用access时使用的代码
<%
set conn=server.CreateObject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.MapPath("db1.mdb")
exec="select * from biao1"
set rs=server.CreateObject("adodb.recordset")
rs.open exec,conn,1,1
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<%do while not rs.eof%><tr>
<td><%=rs("name")%></td>
<td><%=rs("tel")%></td>
<td><%=rs("message")%></td>
<td><%=rs("time")%></td>
</tr>
rs.movenext
loop
%>
是500错误,我已经按照你说的做了,但是它出的提示是“The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.”
这是什么意思?
还是打不开ASP文件啊!
帮忙再想想吧,谢谢了!



!!

把Access文件拷到你的网页的那个文件夹。