Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2002-07-03
10
Medium Priority
?
1,831 Views
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
oConn.open connString
set pwRS=Server.CreateObject("ADODB.recordset")
pwRS.CursorLocation = 3 'adUseClient
pwRS.LockType = 3


It fails at line -

oConn.open connString

0
Comment
Question by:Malek103197
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 2

Expert Comment

by:ManuelMSP
ID: 7129243
0
 

Author Comment

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

Expert Comment

by:CJ_S
ID: 7129438
sDBPath = "DBQ=C:\Inetpub\wwwroot\Tracking\MasterFleet2000.mdb"
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 30

Accepted Solution

by:
third earned 400 total points
ID: 7129445
you either use,

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

or

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

server.mappath returns the physical location of a virtual file.
0
 
LVL 2

Expert Comment

by:pforeman
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"

//PF
0
 
LVL 2

Expert Comment

by:ManuelMSP
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.

0
 
LVL 2

Expert Comment

by:ManuelMSP
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!
0
 
LVL 12

Expert Comment

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

Author Comment

by:Malek103197
ID: 7129594
ManuelMSP - how do I do this?
0
 

Author Comment

by:Malek103197
ID: 7129607
That did it! I used -

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

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

609 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