.NETGURU
The Microsoft Jet database engine cannot open the file
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-oledb' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Greg Merideth
-- Moved from [aspngstart] to [ngfx-oledb] by Ken Schaefer <Click here to reveal e-mail address> --

Ok, I give up. I am getting this error no matter what I try to do to
access an access database to get familer with asp.net as I can't afford
sql server to do sql testing.

I've installed MDAC 2.7 and made sure I added "aspuser" to the directory
(and all files inside) as full control (read,write,change,delete). I
erased the DSN that I setup to use ODBC to access the database and the
database itself has no username/password on it.

I found tons of information online but it all pointed to mdac 2.7 and
the username combo solution which I was well aware of from programming
in regular ASP.

An article from MS suggested making the "aspprocess" run in the system
context but I'll be dammed if I can figure out how to make that happen.
Machine.config is still a blur of mush to me at the moment.

--------------------------------

The Microsoft Jet database engine cannot open the file
'D:\Databases\aspnet.mdb'. It is already opened exclusively by another
user, or you need permission to view its data.

Source Error:

Line 17: SQLstring = "SELECT * FROM shipping_methods"
Line 18: myConnection = New
OleDBConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=D:\Databases\aspnet.mdb")
Line 19: myConnection.Open()
Line 20: myCommand = New OleDbCommand(SQLstring, myConnection)
Line 21: myReader = myCommand.ExecuteReader()

Reply to this message...
 
    
Daniel Naumann
Greg,

The RTM .NET runs under a different account to the previous versions. it use to run a an
administrator, but they changed that for security reasons. it now runs under the account ASPNET.
Does that user have access to the database?

Daniel.

-----Original Message-----
From: Greg Merideth [mailto:Click here to reveal e-mail address]
Sent: 13-Mar-2002 01:59
To: ngfx-oledb
Subject: [ngfx-oledb] The Microsoft Jet database engine cannot open the
file

-- Moved from [aspngstart] to [ngfx-oledb] by Ken Schaefer <Click here to reveal e-mail address> --

Ok, I give up. I am getting this error no matter what I try to do to
access an access database to get familer with asp.net as I can't afford
sql server to do sql testing.

I've installed MDAC 2.7 and made sure I added "aspuser" to the directory
(and all files inside) as full control (read,write,change,delete). I
erased the DSN that I setup to use ODBC to access the database and the
database itself has no username/password on it.

I found tons of information online but it all pointed to mdac 2.7 and
the username combo solution which I was well aware of from programming
in regular ASP.

An article from MS suggested making the "aspprocess" run in the system
context but I'll be dammed if I can figure out how to make that happen.
Machine.config is still a blur of mush to me at the moment.

--------------------------------

The Microsoft Jet database engine cannot open the file
'D:\Databases\aspnet.mdb'. It is already opened exclusively by another
user, or you need permission to view its data.

Source Error:

Line 17: SQLstring = "SELECT * FROM shipping_methods"
Line 18: myConnection = New
OleDBConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=D:\Databases\aspnet.mdb")
Line 19: myConnection.Open()
Line 20: myCommand = New OleDbCommand(SQLstring, myConnection)
Line 21: myReader = myCommand.ExecuteReader()

| [ngfx-oledb] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-oledb.asp = JOIN/QUIT

Reply to this message...
 
    
Ken Schaefer (VIP)
Greg,

What are the NTFS permissions for the file in question?
What are the NTFS permissions for the folder that the file is in (Access
needs to create and destroy it's little .ldb lockfile - if the user in
question doesn't have sufficient priveleges to the folder that could be the
problem as well).

As a suggestion (to help in seeing if this is a permissions related
problem), try giving the Everyone group Full Control to the folder (and
making sure that the permissions are propogated to files/folders)

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Greg Merideth" <Click here to reveal e-mail address>
Subject: [ngfx-oledb] RE: The Microsoft Jet database engine cannot open the
file

: I've added aspnet as a user accessable to the database (via nt
: permissions) and then I found and edited the machine.config to make asp
: net process run in the "system" account and still aspnet cannot access
: the database.
:
: The database was created with access2002 but I don't think that should
: matter.
:
:
: -----Original Message-----
: From: Daniel Naumann [mailto:Click here to reveal e-mail address]
: Sent: Wednesday, March 13, 2002 12:53 AM
: To: ngfx-oledb
: Subject: [ngfx-oledb] RE: The Microsoft Jet database engine cannot open
: the file
:
:
: Greg,
:
: The RTM .NET runs under a different account to the previous versions.
: it use to run a an administrator, but they changed that for security
: reasons. it now runs under the account ASPNET. Does that user have
: access to the database?
:
: Daniel.
:
: -----Original Message-----
: From: Greg Merideth [mailto:Click here to reveal e-mail address]
: Sent: 13-Mar-2002 01:59
: To: ngfx-oledb
: Subject: [ngfx-oledb] The Microsoft Jet database engine cannot open the
: file
:
:
: -- Moved from [aspngstart] to [ngfx-oledb] by Ken Schaefer
: <Click here to reveal e-mail address> --
:
: Ok, I give up. I am getting this error no matter what I try to do to
: access an access database to get familer with asp.net as I can't afford
: sql server to do sql testing.
:
: I've installed MDAC 2.7 and made sure I added "aspuser" to the directory
: (and all files inside) as full control (read,write,change,delete). I
: erased the DSN that I setup to use ODBC to access the database and the
: database itself has no username/password on it.
:
: I found tons of information online but it all pointed to mdac 2.7 and
: the username combo solution which I was well aware of from programming
: in regular ASP.
:
: An article from MS suggested making the "aspprocess" run in the system
: context but I'll be dammed if I can figure out how to make that happen.
: Machine.config is still a blur of mush to me at the moment.
:
: --------------------------------
:
: The Microsoft Jet database engine cannot open the file
: 'D:\Databases\aspnet.mdb'. It is already opened exclusively by another
: user, or you need permission to view its data.
:
: Source Error:
:
: Line 17: SQLstring = "SELECT * FROM shipping_methods"
: Line 18: myConnection = New
: OleDBConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data
: Source=D:\Databases\aspnet.mdb")
: Line 19: myConnection.Open()
: Line 20: myCommand = New OleDbCommand(SQLstring, myConnection)
: Line 21: myReader = myCommand.ExecuteReader()

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply to this message...
 
 
System.Data.OleDb.OleDbCommand




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification