xp中正常,03中不正常的一段代码,请高手帮忙
aykkk 2010-07-25 11:32:32 <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
Acc_db="sqlhope.mdb"
ConnStr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.MapPath(Acc_db)
Set conn = Server.CreateObject("ADODB.Connection")
conn.open ConnStr
set rs=conn.execute("select * from SqlIn")
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="25">id</td>
<td>fs</td>
</tr>
<% do while not re.eof %>
<tr>
<td height="25"> <%= rs("id") %></td>
<td> <%= rs("sqlin_ip") %></td>
</tr>
<% rs.movenext
loop %>
</table>
</body>
</html>
<% rs.close
set rs=nothing
conn.close
set conn=nothing %>
这段代码在xp中执行正常,但是在win2003中错误,提示未指定的错误 ,错误行就是conn.open ConnStr,怎么回事?