Access and database connection

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Access and database connection

    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
    chris Guest

  2. Similar Questions and Discussions

    1. Help using Access database connection
      I am using access, but when it connects using the supplied driver in CF MX7 suddenly I can see the full path name under for instance my tables in...
    2. DW8 connection to MS Access database
      I'm new to database design and I've been trying to connect to an MS Database on my local computer. I've been going round in circles trying asp,...
    3. ASP Access Database Connection Problem
      Hey all! I'm relatively new to using ASP and i am having difficulty connecting my Access Database using the application window in Dreamweaver MX...
    4. Access DataBase Connection Problem
      There is something I don't do right. When setting up the Microsoft Jet Driver for my Access 2000 database connection, I clicked the test button and...
    5. Access Database connection is not working! Help!
      Hi Guys, i had installed the new fix for Dreamweaver MX 2004 for the Windows XP SP2 but i still cannot connect with an Access database on a ASP.NET...
  3. #2

    Default Re: Access and database connection

    Check if there is an instance of Access that has opened this data file and
    is still open.

    --
    Naveen K Kohli
    [url]http://www.netomatix.com[/url]
    "chris" <chrisinfo_2000@yahoo.com> wrote in message
    news:00c301c353a0$1facd8c0$a301280a@phx.gbl...
    > 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

    Naveen K Kohli Guest

  4. #3

    Default Re: Access and database connection

    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


    Jos Guest

  5. #4

    Default Re: Access and database connection

    I am having the same problem. My Access database is on my development
    machine in the same virtual directory as my Web application. When I
    right-click the file there is no security tab for setting permissions.

    Does anyone know how to correct this problem?



    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    devex Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139