在IIS中建立了一个网站,浏览网站能显示文件目录。然而点击conn.asp文件就出现
An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.
这是conn.asp内容:
<%
dim conn
dim connstr
dim db
db="datum/Database1.mdb"
Set conn = Server.CreateObject("ADODB.Connection")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(db)
conn.Open connstr
%>
数据库为Database1.mdb,保存在datum文件夹下