If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > 80040E4D error - using MS Access/ASP 3.0

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-30-02, 15:37
bjnst6 bjnst6 is offline
Registered User
 
Join Date: Sep 2002
Posts: 13
80040E4D error - using MS Access/ASP 3.0

i'm having trouble connecting to an access database on my own machine. here's my connection string if i try to use ODBC:

<% strConn = "Driver={Microsoft Access Driver (*.mdb)}; DBQ=E:\Documents and Settings\Bob J. Roberts\My Documents\Work\SafetyKids\safetykids.mdb" %>

or if i try to use OLE DB:

<% strConn = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=E:\Documents and Settings\Bryan J. Nelson\My Documents\Work\SafetyKids\safetykidsdb.mdb;" & _
"User Id=admin;Password=test"%>

and then my code:

<% Set conPubs = Server.CreateObject("ADODB.Connection")
conPubs.ConnectionString = StrConn
conPubs.Open
'cool stuff here
conPubs.Close
%>

and here's my error for ODBC:

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 0xdec Thread 0xee8 DBC 0x14d0064 Jet'.

and my error for OLE DB:

Microsoft JET Database Engine (0x80040E4D)
Cannot start your application. The workgroup information file is missing or opened exclusively by another user.


i'd like to use OLE DB...but whatever works.
other info: i have MDAC 2.7..****nning XP Pro...using Access 2000...and using MS's component checker i've found that i do have Jet 4.0 installed as well.

i've been working on this bug for awhile...any help would be very appreciated.
thanks.
b
Reply With Quote
  #2 (permalink)  
Old 09-30-02, 16:47
dwilliams dwilliams is offline
Registered User
 
Join Date: Sep 2002
Posts: 17
Have you tried using a DSN rather than DSNless connections?

Also try simplifing the path.

e:\data\x.mdb for example
__________________
David Williams
Senior Jack of All Trades
Reply With Quote
  #3 (permalink)  
Old 09-30-02, 17:13
bjnst6 bjnst6 is offline
Registered User
 
Join Date: Sep 2002
Posts: 13
i tried simplifying the path...that didn't work.

how do i use a DSN connection instead? this is on my local machine.
(sorry i'm new to this).

thanks.
b
Reply With Quote
  #4 (permalink)  
Old 09-30-02, 17:23
dwilliams dwilliams is offline
Registered User
 
Join Date: Sep 2002
Posts: 17
Here are some links. They will serve you better than me trying to explain it.

http://www.learnasp.com/learn/index.asp

look for

DSN Setup #1 by Rob Martinson

this is a great reference site.
__________________
David Williams
Senior Jack of All Trades
Reply With Quote
  #5 (permalink)  
Old 09-30-02, 17:47
bjnst6 bjnst6 is offline
Registered User
 
Join Date: Sep 2002
Posts: 13
i fine site indeed...

i set up the DSN and tried it instead...only i get the same error...any other ideas?

thanks again for your time.
b
Reply With Quote
  #6 (permalink)  
Old 09-30-02, 17:56
bjnst6 bjnst6 is offline
Registered User
 
Join Date: Sep 2002
Posts: 13
upon viewing aspfaq.com and reading this:

In addition, make sure the anonymous user on your machine (IUSR_machineName) has both read and write access to the folder in which the MDB file(s) reside.

the problem is resolved.

thanks for helping!!

b
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On