Unable to open registry key 'Temporary (volatile) Jet DSN...

Posted on 2002-07-03
Last Modified: 2012-08-14
When I run my asp code within the machine all is fine. But when I open my page via the internet I get the following error -

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]General error
Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x594 Thread 0x5a0 DBC 0x2118024 Jet'.
/processUserLogIn.asp, line 28

I have looked at previously asked questions but the things I tried did not work. I have not upgraded my MDAC - how can I tell what ver. I have on my server - if this in fact is the problem.

Here is my code -

Dim sSQL, oConn
Dim sDBPath
Dim varName, varPassword, connString, pwRS, varClient, retMsg

sDBPath = "DBQ=Server.MapPath(C:\Inetpub\wwwroot\Tracking\MasterFleet2000.mdb)"

set oConn=Server.CreateObject("ADODB.connection")
connString = "DRIVER={Microsoft Access Driver (*.mdb)}; "
connString = connString + sDBPath connString
set pwRS=Server.CreateObject("ADODB.recordset")
pwRS.CursorLocation = 3 'adUseClient
pwRS.LockType = 3

It fails at line - connString

Question by:Malek103197

Expert Comment

ID: 7129243

Author Comment

ID: 7129391
I did follow the instructions but still the same error.
LVL 22

Expert Comment

ID: 7129438
sDBPath = "DBQ=C:\Inetpub\wwwroot\Tracking\MasterFleet2000.mdb"
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

LVL 30

Accepted Solution

third earned 100 total points
ID: 7129445
you either use,

set oConn=Server.CreateObject("ADODB.connection")
oConn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0" server.mappath("MasterFleet2000.mdb")


set oConn=Server.CreateObject("ADODB.connection")
oConn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0" "C:\Inetpub\wwwroot\Tracking\MasterFleet2000.mdb"

server.mappath returns the physical location of a virtual file.

Expert Comment

ID: 7129446
I suggest using this connection string instead.  I have far less problems using the JET driver than the ACCESS MDB driver.

Dim oConn
set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & "DATA SOURCE=c:\database.mdb"


Expert Comment

ID: 7129454
Did you check the Registry
permissions for the key described in the error message. AND
Check the permissions of your IIS IUSER. The "IUSER_<machine
name>" anonymous Internet user account must have "Read" permission.


Expert Comment

ID: 7129456
I found this also:

Microsoft has added a "feature" to access that RESETS
permissions on database files on your webserver whenever you run the
"repair and compact database" utility on that file.  Dont ask me why,
or if it does it on all machines- I dont know.  But on my server,
every single time (100%) when I "repair and compact" my *.mdb file, it
REMOVES the "IUSR_*" account on the file permissions.  I then must go
back and manuall grant "write" access to "IUSR_*" account on the *mdb
database, and presto!
LVL 12

Expert Comment

by:Wouter Boevink
ID: 7129539
Is your disk full?

Author Comment

ID: 7129594
ManuelMSP - how do I do this?

Author Comment

ID: 7129607
That did it! I used -

set oConn=Server.CreateObject("ADODB.connection")
oConn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0" server.mappath("MasterFleet2000.mdb")

and it is now working - thanks for the excellent advice, and thanks to all who contributed.

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Choose the older file FSO 6 50
Server Timeout with Loop 6 52
ASP server side get value 15 35
Adjust an existing ASP Query 45 16
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question ( here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question