Home All Groups Group Topic Archive Search About

From ASPX page, can't access file on another PC on network

Author
16 Mar 2006 11:59 PM
Ronald S. Cook
In my .aspx page, I am trying to read file that is on a different on the
company network.



When I map a drive to it and call from within my .aspx page, I get this
error:



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'.



When I put in the path as \\server\content\Events.nss, I get an error saying
I needed a username and password to be able to get to that place.



How can I get to this file?



Thanks for any help,

Ron

Author
17 Mar 2006 4:42 AM
I Don't Like Spam
Ronald S. Cook wrote:
Show quoteHide quote
> In my .aspx page, I am trying to read file that is on a different on the
> company network.
>
>
>
> When I map a drive to it and call from within my .aspx page, I get this
> error:
>
>
>
> 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'.
>
>
>
> When I put in the path as \\server\content\Events.nss, I get an error saying
> I needed a username and password to be able to get to that place.
>
>
>
> How can I get to this file?
>
>
>
> Thanks for any help,
>
> Ron
>
>

The ASP page runs under the ASPNET user, this guy does not have rights
on your other computer.  You need to look into impersonation to get this
working.

Chris