求救:win2000+IIS5.0下,ASP数据库操作总报错误'8007007f'!

wanyou9 2004-07-27 09:39:20
2000下使用asp访问数据库时,在conn.open始终发生8007007f错误,重装IIS和SQL Server均得不到解决。我在网上查到的解决办法是将 oledb32.dll 解压到以下两个目录,然后重启服务器:
1) C:\WINNT\system32\dllCache
2) C:\Program Files\Common Files\System\OLE DB

下载地址 http://www.promiseweb.com/oledb32.zip
但问题是上面的下载地址有问题,无法打开!急盼大侠出手相救!我的邮箱:wanyou9@hotmail.com
...全文
142 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
wanyou9 2004-07-28
  • 打赏
  • 举报
回复
对不起,刚试过了,在我的机子上仍然报错8007007f!我认为这不是程序本身的问题,照我在网上搜这个错误的解释来看,应该是win2000升级造成的系统错误!
sunjiujiu 2004-07-27
  • 打赏
  • 举报
回复
改为如下:
strSource = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="& strDBLocation
wanyou9 2004-07-27
  • 打赏
  • 举报
回复
我在运行Microsoft Internet信息服务文档中ASP的“课程 3:使用数据库访问组件”时,也报错:
"Microsoft VBScript 编译器错误 错误 '800a03f6'
缺少 'End'
/iisHelp/common/500-100.asp,行242 错误 '8007007f'
/iishelp/iis/htm/tutorial/script6.asp,行23 "
在2000系统下这个实例前几天还是可以运行的,我在网上直接搜"asp 错误 8007007f",得到的解答是“2000在线升级导致了系统文件冲突,conn.open始终发生8007007f错误”,所以应该不会是conn.asp文件的问题。
以下是Microsoft Internet信息服务文档在"\iisHelp\iis\htm\tutorial"文件夹中“课程 3:使用数据库访问组件”script6.asp的源程序:
<form method="Post" Action="iiatmd2.asp#select">
<input type="hidden" name="ShowData" value="True"><p align="center"><input type="Submit" Value="显示"></p>
</form>

<% If Request.Form("ShowData") = "True" then
'Find the physical path for the file in the current directory.
strDBVirtualPath = "/iishelp/iis/htm/tutorial/EECustmr.mdb"
strDBLocation = Server.Mappath(strDBVirtualPath)

'Define OLE-DB connection string.
'strSource = "Provider=Microsoft.Jet.OLEDB.3.51;Data Source=" & strDBLocation

'Define ODBC connection string
strSource = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & strDBLocation

%>



<%
'Instantiate ADO Connection Object and open a connection
Set dbConnection = Server.CreateObject("ADODB.Connection")
dbConnection.Open strSource

'Define SQL Query and execute ADO Recordset query
SQLQuery = "SELECT * FROM Customers"
Set rsCustomerList = dbConnection.Execute(SQLQuery)
%>

<Center>
<TABLE BORDER=1>
<% Do While Not rsCustomerList.EOF %>
<TR><TD width=105><% = rsCustomerList("ContactFirstName") %></TD><TD width=105><%= rsCustomerList("ContactLastName") %></TD><TD width=110><% = rsCustomerList("City") %></TD><TD width=27><% = rsCustomerList("StateOrProvince") %></TD></TR>
<% rsCustomerList.MoveNext
Loop %>
</TABLE>
</Center>
<% Else %>
<Center>
<TABLE BORDER=1>
<TR><TD width=105> </TD><TD width=105> </TD><TD width=110> </TD><TD width=27><BR></TD></TR>
<TR><TD width=105> </TD><TD width=105> </TD><TD width=110> </TD><TD width=27><BR></TD></TR>
<TR><TD width=105> </TD><TD width=105> </TD><TD width=110> </TD><TD width=27><BR></TD></TR>
</Table>
</Center>
<%End if%>

(浏览器报错如上所述)
海大富运动 2004-07-27
  • 打赏
  • 举报
回复
可以改一改你的conn.asp文件,有DBQ,OLEDB方式链接的到google搜索一下conn.asp可以解决的

28,391

社区成员

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

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