Home All Groups Group Topic Archive Search About

ASPX code can't access mapped drive

Author
16 Mar 2006 11:43 PM
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'.

Author
16 Mar 2006 11:51 PM
John Timney ( MVP )
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.

--
Regards

John Timney
Microsoft MVP

Show quoteHide quote
"Ronald S. Cook" <rc***@westinis.com> wrote in message
news:eKfEhNVSGHA.4600@TK2MSFTNGP11.phx.gbl...
> 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'.
>
>
>

Bookmark and Share