J
Jon
I'm calling Server.MapPath from global.asa through this line of code:
Application("reports_dir") = Server.MapPath("Reports")
The web application opens on a testing web server (not mine) at this
mapped drive: M:\
And at this browser URL:
http://mrs2/P2M/login.aspx
I expected MapPath to map a path on the server where the application's
running, in this case the mapped drive M.
However, it returns a path based on my local drive, which is the dev
server but has nothing to do with where the application lives when I'm
running it:
c:\inetpub\wwwroot\p2m\Reports
Can someone explain this? Again, I had expected a M: path, not
anything local and thought that server.mappath had nothing to do with
my local system.
Jon
Application("reports_dir") = Server.MapPath("Reports")
The web application opens on a testing web server (not mine) at this
mapped drive: M:\
And at this browser URL:
http://mrs2/P2M/login.aspx
I expected MapPath to map a path on the server where the application's
running, in this case the mapped drive M.
However, it returns a path based on my local drive, which is the dev
server but has nothing to do with where the application lives when I'm
running it:
c:\inetpub\wwwroot\p2m\Reports
Can someone explain this? Again, I had expected a M: path, not
anything local and thought that server.mappath had nothing to do with
my local system.
Jon