Active Server Pages

Moderators: None (Apply to moderate this forum)
Number of threads: 1751
Number of posts: 4473

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Microsoft JET Database Engine (0x80004005) Unspecified error Posted by carlo_ on 3 Jun 2002 at 5:37 PM
Why do I get this kind of error message: Microsoft JET Database Engine (0x80004005) Unspecified error?

I think the problem is on my computer settings but I don't know which causes this problem. I tried running the ASP sample of IIS 5.0 documentation and it gives the same error message with the ASP page I made. I also tried running the ASP page on another computer and it was able to run the page without any error. So I think the problem is in my computer settings.
Here are the things I've done but didn't solve the problem:
1.) Uninstall the MS Office and then installed it back.
2.) Uninstall the IIS and then install it back.
3.) Uninstall the MDAC 2.6 w/ SP1 and then install it back.
I also went to the Microsoft Support page to find solutions for this error. But I still wasn't able to solve the problem. I tried to follow the instructions given at http://support.microsoft.com/default.aspx?scid=kb;en-us;Q253604 to solve this problem. I even tried the sample in the end of the page but all things didn't work for me.
This is all I can think that would solve the problem but all this solutions didn't work. Do you have any idea on how to do this?
Thanks.
Report
Re: Microsoft JET Database Engine (0x80004005) Unspecified error Posted by StPatrick on 15 Jun 2002 at 8:14 AM
First post here the code that caused the error and point at line inside it. How can someone help if he doesn't see the code? :)

Philip Patrick
Home page: http://www.stpworks.com
"Two beer or not two beer?" Shakesbeer

Report
Re: Microsoft JET Database Engine (0x80004005) Unspecified error Posted by carlo_ on 16 Jun 2002 at 5:39 PM
I was using the sample code of IIS documentation that uses database connectivity. I think it is on the settings of my computer but I don't know what I will do to correct this problem.

Anyway, I'll just post the IIS documentation sample code.

<%@ LANGUAGE = VBScript %>
<% Option Explicit %>

<HTML>
<HEAD>
<TITLE>Simple ADO Query</TITLE>
</HEAD>

<BODY BGCOLOR="White" topmargin="10" leftmargin="10">

<!-- Display Header -->

<font size="4" face="Arial, Helvetica">
<b>Simple ADO Query with ASP</b></font><br>

<hr size="1" color="#000000">

Contacts within the Authors Database:<br><br>

<%
Dim oConn
Dim oRs
Dim filePath
Dim Index


' Map authors database to physical path
filePath = Server.MapPath("authors.mdb")


' Create ADO Connection Component to connect
' with sample database



Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & filePath


' Execute a SQL query and store the results
' within recordset

Set oRs = oConn.Execute("SELECT * From authors")
%>


<TABLE border = 1>
<%
Do while (Not oRs.eof) %>

<tr>
<% For Index=0 to (oRs.fields.count-1) %>
<TD VAlign=top><% = oRs(Index)%></TD>
<% Next %>
</tr>

<% oRs.MoveNext
Loop
%>


</TABLE>


<%
oRs.close
oConn.close
%>

</BODY>
</HTML>

This codes gives the 80004005 error when I ran this on my computer. But if I try this code on another computer, it would only work.


: First post here the code that caused the error and point at line inside it. How can someone help if he doesn't see the code? :)
:
: Philip Patrick
: Home page: http://www.stpworks.com
: "Two beer or not two beer?" Shakesbeer
:
:

Report
Re: Microsoft JET Database Engine (0x80004005) Unspecified error Posted by StPatrick on 17 Jun 2002 at 12:51 AM
So what line the code fizzles? I see many places that can lead to error. Like the database doesn't exist (or not in the SAME directory where the .asp file is), or you have no Jet 4.0 installed on your computer (maybe older version?), or even you don't have ADO installed on your computer :)
Try to find the line that causes the error by removing code line by line from ASP file and running and running it again, untill you get something else or no error.

Philip Patrick
Home page: http://www.stpworks.com
"Two beer or not two beer?" Shakesbeer

Report
Re: Microsoft JET Database Engine (0x80004005) Unspecified error Posted by carlo_ on 17 Jun 2002 at 5:13 PM
Actually, when the error message appear where it shows:

--------------------
Please try the following:

Click the Refresh button, or try again later.
Open the terminal03 home page, and then look for links to the information you want
--------------------

I would click on the terminal03(terminal03 is my computer name) and the Windows 2000 Internet Service welcome note would appear. And a popup of the IIS 5.0 documentation would appear. But after I would click the back button, the ASP page I made wouldn't give any error. So I think it must only be on the settings cause it would still run even without changing anything on the code.

The error usually appear when the open or execute of the dataconnection is made. How will I know if Jet 4.0 is installed? I tried making an application on visual basic with Jet 4.0 and it didn't have any error. Even the ASP page would still run as long as I click on Terminal03 then press the back button. I also tried running the code I posted on another computer and it was able to run flawlessly. I think it must not be on the code but on the computer settings. But I don't know what causes this to appear.




: So what line the code fizzles? I see many places that can lead to error. Like the database doesn't exist (or not in the SAME directory where the .asp file is), or you have no Jet 4.0 installed on your computer (maybe older version?), or even you don't have ADO installed on your computer :)
: Try to find the line that causes the error by removing code line by line from ASP file and running and running it again, untill you get something else or no error.
:
: Philip Patrick
: Home page: http://www.stpworks.com
: "Two beer or not two beer?" Shakesbeer
:
:

Report
Re: Microsoft JET Database Engine (0x80004005) Unspecified error Posted by StPatrick on 17 Jun 2002 at 11:41 PM
right, it is somewhere in setting, but the CODE gives an error, so you have to look up in the code WHERE it fails.
If you will make a simple page with Response.Write "Hello world" it will work? If you open a connection and then close it without doing nothing it will work? You HAVE to try to understand WHAT fails

Philip Patrick
Home page: http://www.stpworks.com
"Two beer or not two beer?" Shakesbeer

Report
Re: Microsoft JET Database Engine (0x80004005) Unspecified error Posted by carlo_ on 18 Jun 2002 at 1:39 AM
If it's just an ordinary ASP page without a database connectivity, there won't be any error. The error would appear if the recordset or connection is open. That's where the error would appear. The code:
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & filePath
is where the error would appear.


: right, it is somewhere in setting, but the CODE gives an error, so you have to look up in the code WHERE it fails.
: If you will make a simple page with Response.Write "Hello world" it will work? If you open a connection and then close it without doing nothing it will work? You HAVE to try to understand WHAT fails
:
: Philip Patrick
: Home page: http://www.stpworks.com
: "Two beer or not two beer?" Shakesbeer
:
:

Report
Re: Microsoft JET Database Engine (0x80004005) Unspecified error Posted by pridi on 2 Mar 2009 at 7:19 PM
Hello,

Though this thread has been very old, i'm posting mine of the same error, but of different error message. Here it is...


Technical Information (for support personnel)

* Error Type:
Microsoft JET Database Engine (0x80004005)
Unspecified error
/ConnectData.asp, line 25


I tried opening ConnectData.asp...

dim db

Application("db_path")=Request.ServerVariables("APPL_PHYSICAL_PATH")&"data\reservationsystem.mdb"
Application("path")=Request.ServerVariables("APPL_PHYSICAL_PATH")&"data\reservationsystem"
db="Provider=Microsoft.Jet.OLEDB.4.0; Data source= "&Application("db_path")
set Application("connect")=Server.CreateObject("ADODB.Connection")
Application("connect").connectiontimeout=1800
Server.ScriptTimeout=1800
Application("connect").open db
set Application("rec")=Server.CreateObject("ADODB.Recordset")
Application("cnt")=0
Application("cnt2")=0

Wherein Line 25 is this, Application("connect").open db

I tried other solutions posted in this site but none of them solves the problem. Hoping for your replies, thanks!!!



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.