Acessing mdb file from a network share!!

Discussion in 'ASP .Net' started by Jay, Nov 21, 2003.

  1. Jay

    Jay Guest

    Hello,

    Iam trying to access a mdb file from a shared drive \\mycomputer\files from
    ASP.NET and OLEDB.

    It works locally
    Computer A hosts IIS/ASP.Net.
    Files reside in ComputerB under a network share.

    Web.config has the following-
    1. One which works-
    <add key="NEWVIP" value="PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA
    SOURCE=c:\inetpub\wwwroot\clients\newvip\database\vip.mdb;" />

    2. One which does not work-
    <add key="NEWVIP" value="PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA
    SOURCE=\\computerA\\files\newvip\database\vip.mdb;" />

    Thanks for your help.
    jay
     
    Jay, Nov 21, 2003
    #1
    1. Advertising

  2. Jay

    Miha Markic Guest

    Hi Jay,

    "Jay" <> wrote in message
    news:...
    > Hello,
    >
    > Iam trying to access a mdb file from a shared drive \\mycomputer\files

    from
    > ASP.NET and OLEDB.
    >
    > It works locally
    > Computer A hosts IIS/ASP.Net.
    > Files reside in ComputerB under a network share.
    >
    > Web.config has the following-
    > 1. One which works-
    > <add key="NEWVIP" value="PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA
    > SOURCE=c:\inetpub\wwwroot\clients\newvip\database\vip.mdb;" />
    >
    > 2. One which does not work-
    > <add key="NEWVIP" value="PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA
    > SOURCE=\\computerA\\files\newvip\database\vip.mdb;" />


    The aspnet account under which asp.net application is run has not enough
    privileges to access the file share.
    You will have to run your asp.net application under domain account that has
    access to file share.
    You might create an account with same name/password on both computers or use
    a domain account.

    --
    Miha Markic - RightHand .NET consulting & development
    miha at rthand com
     
    Miha Markic, Nov 21, 2003
    #2
    1. Advertising

  3. Peter O'Reilly, Nov 21, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. john smith
    Replies:
    0
    Views:
    462
    john smith
    Jan 6, 2004
  2. =?Utf-8?B?UGhpbA==?=

    Faster access to MDB? MS Access MDB and ASP

    =?Utf-8?B?UGhpbA==?=, Jan 26, 2005, in forum: ASP .Net
    Replies:
    8
    Views:
    509
    Kevin Spencer
    Jan 27, 2005
  3. John  Schult

    MDB to MDB Event Notification

    John Schult, May 4, 2005, in forum: Java
    Replies:
    0
    Views:
    499
    John Schult
    May 4, 2005
  4. Plateriot

    2 connection strings, one SQL one network MDB

    Plateriot, Jun 5, 2008, in forum: ASP .Net Security
    Replies:
    3
    Views:
    279
    Misbah Arefin
    Jun 9, 2008
  5. Saraswati lakki
    Replies:
    0
    Views:
    1,413
    Saraswati lakki
    Jan 6, 2012
Loading...

Share This Page