Click to See Complete Forum and Search --> : Server.MapPath error
nimmyjo
01-30-2007, 06:28 AM
:confused: I have a problem with Server.MapPath.when I try to retrive a path of folder which is in Server, it is maping to the local PC location.some thing like C:\Inetpub\wwwroot\nimmy
instead of
Http://localhost/nimmy
What shall I do
RobDavid
01-30-2007, 10:24 AM
Server.MapPath takes a virtual file path and gives you the physical file path.
Which it is doing.
nimmyjo
01-30-2007, 11:57 PM
Server.MapPath takes a virtual file path and gives you the physical file path.
Which it is doing.
David can you help me,I need to take a path of a file from server
Chitra Xavier
01-31-2007, 01:34 AM
Hi...
Use Request.PhysicalPath which gives the wwwroot path