Re: Access and database connection

From: Jos (josnospambranders_at_fastmail.fm)
Date: 07/28/03


Date: Mon, 28 Jul 2003 15:06:06 +0200


chris wrote:
> I get the following error when I try to run my web page in
> asp.net.
>
> The Microsoft Jet database engine cannot open the
> file 'c:\inetpub\wwwroot\test\test.mdb'. It is already
> opened exclusively by another user, or you need permission
> to view its data.
>
> I have gone to the User Accounts and changed all users to
> group Administrators, but still does not work. I am using
> visual studio.net, and I seem to remember changing
> permissions on a file and it seemed to work after that but
> can not remember what or where that file is located. If
> anyone can help me with this error I would be most
> appreciative.
>
> chris

This problem can have 2 causes (as indicated by the message):

1) opened by another user. This can be caused by your own
   application opening the database and not closing it. Make
   sure to add the line myConnection.Close() after opening a
   connection. Also use exception handling, so that the
   this line also executes in the case of an error.

2) you need permission. Try changing the security settings on
    the database file test.mdb, by giving the ASPNET account
    at least read access.

--
Jos


Relevant Pages

  • Re: Security Warnings
    ... they are the digital signature warnings you receive when opening ... "Chris Mills" wrote: ... >> I have created a runtime access database using office 2003. ... >> dont get these warnings/questions. ...
    (microsoft.public.access.security)
  • Re: low permission cannot convert from A97 to A2000/2003
    ... Delete is a separate permission. ... You need open exclusive permission on the database to ... > The admin user has full privileges. ... > as we wont be importing those files from them, and the contractor will be ...
    (microsoft.public.access.conversion)
  • Re: low permission cannot convert from A97 to A2000/2003
    ... Delete is a separate permission. ... You need open exclusive permission on the database to ... > The admin user has full privileges. ... > as we wont be importing those files from them, and the contractor will be ...
    (microsoft.public.access.security)
  • Re: 2002 database corrupt and unuseable after upgrading to Access
    ... >> This refers to an empty class module. ... >> Opening the database with the shift key down bypasses the autostart form, ... >> but then opening the VBA code produces the same sequence of errors. ...
    (microsoft.public.access.conversion)
  • Re: Limitations using Developer
    ... Chris, thanks for the response. ... > The packaging wizard is just what you use to install it. ... >> packaging wizard once to get a database to a user who didn't ...
    (microsoft.public.access.devtoolkits)