|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
From ASPX page, can't access file on another PC on networkcompany 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 Ronald S. Cook wrote:
Show quoteHide quote > In my .aspx page, I am trying to read file that is on a different on the The ASP page runs under the ASPNET user, this guy does not have rights > 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 > > on your other computer. You need to look into impersonation to get this working. Chris |
|||||||||||||||||||||||