日期:2014-05-16  浏览次数:20763 次

帮我看看我为什么出现错误 '80004005'
帮我看看为什么会出现错误 '80004005'


我运行author.asp时出现:帮我看看我为什么出现错误 '80004005'

如果把author.asp放到gl文件夹里,把<!-- #include file="gl\conn.asp" -->修改成<!-- #include file="conn.asp" -->后,能正常显示。可是放到aspcs文件夹下运行就出现 '80004005'

出现错误提示如下:
引用
Microsoft OLE DB Provider for ODBC Drivers 错误 '80004005'

[Microsoft][ODBC Microsoft Access 驱动程序] '(未知的)'不是一个有效的路径。 确定路径名称拼写是否正确,以及是否连接到文件存放的服务器。

/gl/conn.asp,行 5


其中author.asp代码如下:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!-- #include file="gl\conn.asp" -->
<%
dim exec
exec="select *from author"
set rs=server.CreateObject("adodb.recordset")
rs.open exec,conn,3,3
%>
<!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="1">
  <tr>
    <td width="31">序号</td>
    <td width="109">作者名</td>
    <td width="438">作者关键词</td>
  </tr>
  <% do while not rs.eof%>
  <tr>
    <td><%=rs("authorid")%></td>
    <td><%=rs("authorname")%></td>
    <td><%=rs("authorkeyword")%></td>
  </tr>
  <%
  rs.movenext
  loop
  %>
</table>
</body>
</html>
<%
rs.close
set rs=nothing
conn.close
set author=nothing
%>

------解决方案--------------------