ASPX code can't access mapped drive

  • Thread starter Thread starter Ronald S. Cook
  • Start date Start date
R

Ronald S. Cook

Hi,

My ASPX code is trying to read a file on a mapped drive. But I get the
error below. Any help would be greatly appreciated.

Could not find a part of the path 'Z:\Events.nss'.

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.IO.DirectoryNotFoundException: Could not find a
part of the path 'Z:\Events.nss'.
 
you mapped the Z drive - not the web server account your running under or
even impersonating, so it doesn't exist.

Read this for some indepth details
http://www.15seconds.com/issue/030926.htm

Basically, your drive needs to be mapped using a UNC path and the
aspnet_user needs to be a domain account in order to
access a network share.
 

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

Back
Top