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

lkjlnet 2013-08-19 03:17:41
帮我看看为什么会出现错误 '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
%>
...全文
124 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
KK3K2005 2013-08-19
  • 打赏
  • 举报
回复
每隔 10天 会出现一次的问题 没有权限
net_php 2013-08-19
  • 打赏
  • 举报
回复
看看conn.asp的代码。
街头小贩 2013-08-19
  • 打赏
  • 举报
回复
贴一下conn.asp?

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧