Author: levaal | Posted on: 12/26/2008 11:47:23 AM | Views : 281

How to access hosting root directory (e.g. which contain "www" directory, where visible to users files are kept).
Request.PhysicalApplicationPath(), Server.MapPath("~"), Server.MapPath("../") methods give a string with "/www" in the end
Server.MapPath("../../") give "Cannot use a leading .. to exit above the top directory" error
Is there any way to get root directory path ?
p.s.: ASP has no right to create a new file in root directory, but can open and append data into existing one

...

Go to the complete details ...