Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Concurrent Web- and direct access to an Access DB

Reply
Thread Tools

Concurrent Web- and direct access to an Access DB

 
 
CJM
Guest
Posts: n/a
 
      07-02-2004
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


 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      07-02-2004
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 http://www.aspfaq.com/show.asp?id=2009 - 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"


 
Reply With Quote
 
 
 
 
CJM
Guest
Posts: n/a
 
      07-02-2004

"Bob Barrows [MVP]" <> wrote in message
news:%...
> 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 http://www.aspfaq.com/show.asp?id=2009 - 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...


 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      07-02-2004
CJM wrote:
> "Bob Barrows [MVP]" <> wrote in message
> news:%...
>> 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 http://www.aspfaq.com/show.asp?id=2009 - 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"


 
Reply With Quote
 
[MSFT]
Guest
Posts: n/a
 
      07-05-2004
Hello,

In MS Access, if you choose "Open Read only" to open the access file, will
you open it in ASP? If you only need to query the Access database, you may
add "Mode=Read;" in the connection string. Will this help

Luke


 
Reply With Quote
 
CJM
Guest
Posts: n/a
 
      07-05-2004
"Bob Barrows [MVP]" <> wrote in message
news:...
> 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


 
Reply With Quote
 
CJM
Guest
Posts: n/a
 
      07-05-2004
Luke,

I've already tried this. Well, rather than modify my connections string, I
set the connection objects mode property instead, which should have the same
effect - but didnt.

As I said to Bob, I'll check for loose ends and will repost shortly...

Chris

"[MSFT]" <> wrote in message
news:...
> Hello,
>
> In MS Access, if you choose "Open Read only" to open the access file, will
> you open it in ASP? If you only need to query the Access database, you may
> add "Mode=Read;" in the connection string. Will this help
>
> Luke
>
>



 
Reply With Quote
 
CJM
Guest
Posts: n/a
 
      07-06-2004
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 (http://support.microsoft.com/?id=174943) 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


 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      07-06-2004
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 (http://support.microsoft.com/?id=174943) 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"


 
Reply With Quote
 
CJM
Guest
Posts: n/a
 
      07-06-2004

"Bob Barrows [MVP]" <> wrote in message
news:...
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Concurrent Access to same Session wrt Lock Time-out - what is it? Kevin Frey ASP .Net 3 03-06-2008 10:54 PM
ejbs and concurrent access to share data Andreas Bauer Java 0 04-26-2006 02:48 PM
problems locating the concurrent EDU.oswego.cs.dl.util.concurrent package Pep Java 6 08-16-2005 07:26 AM
Concurrent access null session/application objects Ben Java 1 04-15-2005 07:38 PM
Cache Object Concurrent Access Manit Chanthavong ASP .Net 2 11-19-2003 07:31 PM



Advertisments
 



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