shared access folder problem

  • Thread starter Thread starter Stephen
  • Start date Start date
S

Stephen

Hi guys...
I have a web app that works pretty good . It was developed with the access
database in the virtual directory....now thats its about done, i would like
to reference the database from a shared network directory. I thought all I
had to do was the following in the web.cinfig file
<appSettings>

<add key="cs" value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=ServerX\xtemp\sfleet.mdb"/>

</appSettings>

"Serverx is a file server, xtemp is a shared directory

but I cant get it to work...when i give a absolute path c:\xtemp\sfleet.mdb
it works fine



what am i doing wrong?
 
Typically the service that is running IIS is a local account and does not
have access to server shares. You would have to grant annoymous access (Bad
Idea) to that share or require NT Authentication for your application.

With NT Authentication, as long as you are not seperated by a firewall.
Your users will be able to access the server share and access the database.

HTH
 
Hi ..thanks for the response... I read your message and am still
confused.... Is what I have in the appsetting ok?... and if so, the next
steop would be to grant nt authorization to the application?
 
Whye did you change Data Source to Source?

Its the 2 backslash characters directly preceding ServerX that are
important.

A share is denoted as \\Sharename
 
well... i after alot of trial and error, i was able to direct the appsetting
to a workstation on our lan...so both the webapp and win app can use the
same database, but i still cant get the webapp to work with a share on out
file server.....which just frustrated the hell out o me
and idea's?...we have win 2000 server....

steve
 
Back
Top