Acessing mdb file from a network share!!

J

Jay

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
 
M

Miha Markic

Hi Jay,

Jay said:
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top