Database Access via the Network (ASP.NET and VB.NET)

  • Thread starter Thread starter Michael
  • Start date Start date
M

Michael

I have a mapped drive Z:\ setup on my client machine, with a permission of
'Everone' = full.

I am able to access the database with no problems using VB.NET (desktop
application) but I am unable to access it using an ASP.NET verision of my
desktop app.

It tells me that the 'Z:\' is not a valid patch.

I am figuring that the 'Everyone' does not include access from ASP.NET. I
have tried to play with the file permissions, but with no luck.
I would assume that the ASP.NET on my client machine trying to access the
network share would look just like Everyone to the the share, so why would
it not work.

Can someone please explain this to me, and if you have a solution, please
pass it along.

Thanks

Mike
 
Michael,
When you map a drive, it's only for your user account that you are logged in as.
And since the ASP.NET worker process uses the ASPNET local user account
by default, that account doesn't see the mapped drive.

You could run the ASP.NET worker process under a different account
which has the mapped drive in place (logon with that account and create
the mapped drive).

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP
http://www.able-consulting.com
 
Back
Top