Thanks Steven,
Permissions was the source of my troubles.
Jeff.
"Steven Cheng[MSFT]" <stcheng@online.microsoft.com> wrote in message
news:1g%23JFA5VGHA.1376@TK2MSFTNGXA01.phx.gbl...[color=blue]
> Thanks for your response Jeff,
>
> After some further research, If you do have to use the Access as the
> datastorage which will be accessed by multiple processes, you need to take
> care of the following things:
>
> 1. Since your mdb file is put on a fileshare, make sure you've grant
> sufficient permission in both the fileshare and the NTFS's permission
> setting. In my test case I grant both of them everyone full control though
> you can adjust them according to your decent scenario.
>
> 2. In the OLEDB connectionstring, specify the connection mode as
> "Mode=Share Deny None", this means that the connection to the db file
> won't
> lock it and won't deny any type of access from other client/process(read,
> write....). e.g here is the connectionstring generated through the VS ide
> connection wizard:(used in my desktop application)
>
> ========================
> Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet
> OLEDB:Database Locking Mode=1;Data
> Source="D:\Share_Data\mydb.mdb";Mode=Share Deny None;Jet OLEDB:Engine
> Type=5;Provider="Microsoft.Jet.OLEDB.4.0";Jet OLEDB:System database=;Jet
> OLEDB:SFP=False;persist security info=False;Extended Properties=;Jet
> OLEDB:Compact Without Replica Repair=False;Jet OLEDB:Encrypt
> Database=False;Jet OLEDB:Create System Database=False;Jet OLEDB:Don't Copy
> Locale on Compact=False;User ID=Admin;Jet OLEDB:Global Bulk Transactions=1
> ========================
>
> Then, in our ASP.NET application, just use the same connection setting to
> access the mdb file(through remote file share). Based on my local test, it
> works correctly(I can access it well in both desktop & asp.net application
> concurrently).
>
> Hope this helps.
>
> Regards,
>
> Steven Cheng
> Microsoft Online Community Support
>
>
> ==================================================
>
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
>
> ==================================================
>
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
>
> Get Secure!
www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>
>[/color]