Concurrent Web- and direct access to an Access DB

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Concurrent Web- and direct access to an Access DB

    I'm setting up some web-based (ASP) reports that query an Access DB. I also
    want certain people to be able to access and manipulate the database
    directly.

    However, if the database is open in Access, I cant access it via ASP:

    Microsoft JET Database Engine error '80004005'
    Could not use ''; file already in use.



    Is there anyway the web application and direct-access users can peacefully
    coexist? I know Access isnt really strong on concurrent access, but I figure
    it ought to at least be able to handle this...

    Thanks

    Chris


    CJM Guest

  2. Similar Questions and Discussions

    1. direct access to db record via url
      Hello all, Just getting started with ColdFusion. I need to setup a visio document that passes the appropriate values to ColdFusion and shows the...
    2. Web Services V.S. Direct Access To SQL Db
      I am starting to design an application where I will use Flash (MX 2004) for the front end and SQL for the back end. I know I have several options...
    3. How does Access database handle concurrent updates?
      When a number of calls are made to update (add records, update field) at the same time what does MS Access do to handle the calls? Does Mysql...
    4. #25475 [NEW]: Direct IO access to raw file descriptor
      From: mbostrom at syrah dot us Operating system: Unixes PHP version: Irrelevant PHP Bug Type: Feature/Change Request Bug...
    5. Strange: Index not used by view but by direct access.
      Dear Community. i have a problem with views on DB2 using no indexes on db2-tables. I have two Tables and one View: V001 is an base-view:...
  3. #2

    Default Re: Concurrent Web- and direct access to an Access DB

    CJM wrote:
    > I'm setting up some web-based (ASP) reports that query an Access DB.
    > I also want certain people to be able to access and manipulate the
    > database directly.
    >
    > However, if the database is open in Access, I cant access it via ASP:
    >
    > Microsoft JET Database Engine error '80004005'
    > Could not use ''; file already in use.
    >
    >
    >
    > Is there anyway the web application and direct-access users can
    > peacefully coexist? I know Access isnt really strong on concurrent
    > access, but I figure it ought to at least be able to handle this...
    >
    This IS covered at [url]http://www.aspfaq.com/show.asp?id=2009[/url] - 80004005 errors

    All users of a Jet database need read/write (Change) permissions for the
    folder containing the database. This includes the IUSR account.

    Bob Barrows

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows [MVP] Guest

  4. #3

    Default Re: Concurrent Web- and direct access to an Access DB


    "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
    news:%23BLJ3xCYEHA.2388@TK2MSFTNGP11.phx.gbl...
    > CJM wrote:
    > > I'm setting up some web-based (ASP) reports that query an Access DB.
    > > I also want certain people to be able to access and manipulate the
    > > database directly.
    > >
    > > However, if the database is open in Access, I cant access it via ASP:
    > >
    > > Microsoft JET Database Engine error '80004005'
    > > Could not use ''; file already in use.
    > >
    > >
    > >
    > > Is there anyway the web application and direct-access users can
    > > peacefully coexist? I know Access isnt really strong on concurrent
    > > access, but I figure it ought to at least be able to handle this...
    > >
    >
    > This IS covered at [url]http://www.aspfaq.com/show.asp?id=2009[/url] - 80004005
    errors
    >
    > All users of a Jet database need read/write (Change) permissions for the
    > folder containing the database. This includes the IUSR account.
    >
    > Bob Barrows
    >
    It IS covered, however, it DOESNT solve my problem, hence the reason I
    posted...


    CJM Guest

  5. #4

    Default Re: Concurrent Web- and direct access to an Access DB

    CJM wrote:
    > "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
    > news:%23BLJ3xCYEHA.2388@TK2MSFTNGP11.phx.gbl...
    >> CJM wrote:
    >>> I'm setting up some web-based (ASP) reports that query an Access DB.
    >>> I also want certain people to be able to access and manipulate the
    >>> database directly.
    >>>
    >>> However, if the database is open in Access, I cant access it via
    >>> ASP:
    >>>
    >>> Microsoft JET Database Engine error '80004005'
    >>> Could not use ''; file already in use.
    >>>
    >>>
    >>>
    >>> Is there anyway the web application and direct-access users can
    >>> peacefully coexist? I know Access isnt really strong on concurrent
    >>> access, but I figure it ought to at least be able to handle this...
    >>>
    >>
    >> This IS covered at [url]http://www.aspfaq.com/show.asp?id=2009[/url] - 80004005
    >> errors
    >>
    >> All users of a Jet database need read/write (Change) permissions for
    >> the folder containing the database. This includes the IUSR account.
    >>
    >> Bob Barrows
    >>
    >
    > It IS covered, however, it DOESNT solve my problem, hence the reason I
    > posted...
    Sorry, I missed the part in your original post where you said you had read
    this article ... ;-)

    As long as all users (including the IUSR and IWAM accounts) have filesystem
    permissions to the folder containing the database, there should be no
    problem. It works fine for me. I guess you need to provide some more
    information.

    Bob Barrows
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows [MVP] Guest

  6. #5

    Default RE: Concurrent Web- and direct access to an Access DB

    Hello,

    I have replied you in microsoft.public.inetserver.asp.general. Please refer
    to that thread.

    Thanks,

    Luke

    [MSFT] Guest

  7. #6

    Default Re: Concurrent Web- and direct access to an Access DB

    "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
    news:OPmEB0EYEHA.3972@TK2MSFTNGP12.phx.gbl...
    > As long as all users (including the IUSR and IWAM accounts) have
    filesystem
    > permissions to the folder containing the database, there should be no
    > problem. It works fine for me. I guess you need to provide some more
    > information.
    >
    I'm going to check all my facts this morning just to make sure I havent
    missed anything.. I'll repost when I have confirmed what is happening.

    tx

    CJM


    CJM Guest

  8. #7

    Default Re: Concurrent Web- and direct access to an Access DB

    Still no nearer a solution...

    As I understand it, I should be able to access & edit the DB via MS Access
    at the same time that a web app accesses the the DB (read only). Obviously,
    if the web app tries to access records opened in the MS Access application,
    an error is expected...

    KB174943 ([url]http://support.microsoft.com/?id=174943[/url]) states that the IUSR user
    needs sufficient privileges; for both my development machine (XP) and the
    live server (Win2k3), the IUSR user has Full rights to the whole application
    directory. Indeed, I even added the IUSR user on the XP machine to the local
    administrators group.

    If I open the DB in Access as Read Only, I can run the web app at the same
    time.

    Any further thoughts or ideas?

    Chris


    CJM Guest

  9. #8

    Default Re: Concurrent Web- and direct access to an Access DB

    CJM wrote:
    > Still no nearer a solution...
    >
    > As I understand it, I should be able to access & edit the DB via MS
    > Access at the same time that a web app accesses the the DB (read
    > only). Obviously, if the web app tries to access records opened in
    > the MS Access application, an error is expected...
    >
    > KB174943 ([url]http://support.microsoft.com/?id=174943[/url]) states that the
    > IUSR user needs sufficient privileges; for both my development
    > machine (XP) and the live server (Win2k3), the IUSR user has Full
    > rights to the whole application directory. Indeed, I even added the
    > IUSR user on the XP machine to the local administrators group.
    >
    > If I open the DB in Access as Read Only, I can run the web app at the
    > same time.
    >
    > Any further thoughts or ideas?
    >
    > Chris
    If the web application's protection setting is High(Isolated). then the IWAM
    account is the user, not the IUST account, and therefore it needs Change
    permissions for the folder containing the database. The issue is that all
    users of the database file need to have the ability to create, modify, and
    delete the .lck (lock) file in that same directory/folder. "Full"
    permissions is not needed, only Change permissions. Don't go crazy here:
    users do not need to be administrators, or anything that extreme. They do
    not need to have permissions for the whole application folder. They need to
    be able to Change files in the database folder. If you have granted them
    those permissions and it is still not working, then more permissions is not
    the answer.

    Are we dealing with a database on a remote machine? If so, the IUSR account
    has to become a domain user.

    Bob Barrows

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows [MVP] Guest

  10. #9

    Default Re: Concurrent Web- and direct access to an Access DB


    "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
    news:uUdijg0YEHA.2500@TK2MSFTNGP09.phx.gbl...
    > If the web application's protection setting is High(Isolated). then the
    IWAM
    > account is the user, not the IUST account, and therefore it needs Change
    > permissions for the folder containing the database. The issue is that all
    > users of the database file need to have the ability to create, modify, and
    > delete the .lck (lock) file in that same directory/folder. "Full"
    > permissions is not needed, only Change permissions. Don't go crazy here:
    > users do not need to be administrators, or anything that extreme. They do
    > not need to have permissions for the whole application folder. They need
    to
    > be able to Change files in the database folder. If you have granted them
    > those permissions and it is still not working, then more permissions is
    not
    > the answer.
    >
    The application protection is set to Medium (Pooled).

    The KB article suggest assigning the IUSR user to the local administrators
    group as a quick check. Needless to say, it won't be left that way.
    > Are we dealing with a database on a remote machine? If so, the IUSR
    account
    > has to become a domain user.
    >
    No... in both cases the DB is local to the web server.

    [However, I will soon have to access an Access DB on a remote machine to
    I've made a mental note about the domain user issue - thanks]

    Chris


    CJM Guest

  11. #10

    Default Re: Concurrent Web- and direct access to an Access DB

    CJM wrote:
    > Still no nearer a solution...
    >
    > ...If I open the DB in Access as Read Only, I can run the web
    > app at the same time.
    >
    > Any further thoughts or ideas?
    Have you tried simply linking to it? I inherited an Access-based ASP
    application, and whenever I want to mess with the data, I open a local
    Access DB and link to the one on the web server (File : Get External Data :
    Link Tables). I can make changes through either interface without
    interfering with the other.


    --
    Dave Anderson

    Unsolicited commercial email will be read at a cost of $500 per message. Use
    of this email address implies consent to these terms. Please do not contact
    me directly or ask me to contact you directly for assistance. If your
    question is worth asking, it's worth posting.


    Dave Anderson Guest

  12. #11

    Default Re: Concurrent Web- and direct access to an Access DB

    Hi Chris,

    Is the access file also under \inetpub\wwwroot ? If so, you may try to move
    it out to see if this will help. Furthermore, I suggest you may trace the
    file access with a utility "Filemon". It can record all access to the
    files. If you can find a "Access denied" error in the log, we can know if
    there is any file/directory we need to grant permission for IUSER. Here is
    the link for download it:

    [url]http://www.sysinternals.com/ntw2k/source/filemon.shtml[/url]

    Luke

    [MSFT] Guest

  13. #12

    Default Re: Concurrent Web- and direct access to an Access DB

    Yet again for unknown reasons the problem has disappeared!

    I had set the connection to read only which should have solved the problem,
    but initially it didnt appear to. However, when I came back to it yesterday,
    it seemed to work OK.

    Incidently, I tried Dave's solution which also worked fine, though it seemed
    to be avoiding the problem rather than solving it (nothing wrong with that I
    suppose).

    AFAIK, I shouldnt need to set the connection mode to read only, but it works
    so I'll stick with it.

    Thanks to Luke/Bob for your efforts/

    Chris

    "CJM" <cjmnews04@newsgroups.nospam> wrote in message
    news:%23TBsssBYEHA.1000@TK2MSFTNGP12.phx.gbl...
    > I'm setting up some web-based (ASP) reports that query an Access DB. I
    also
    > want certain people to be able to access and manipulate the database
    > directly.
    >
    > However, if the database is open in Access, I cant access it via ASP:
    >
    > Microsoft JET Database Engine error '80004005'
    > Could not use ''; file already in use.
    >
    >
    >
    > Is there anyway the web application and direct-access users can peacefully
    > coexist? I know Access isnt really strong on concurrent access, but I
    figure
    > it ought to at least be able to handle this...
    >
    > Thanks
    >
    > Chris
    >
    >

    CJM 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