Vivek Thakur

Chaotically Complex

  Home  |   Contact  |   Syndication    |   Login
  102 Posts | 1 Stories | 309 Comments | 73 Trackbacks

News



Archives

ASP.NET Ventures

Using Server.MapPath("..") in ASP.NET 2.0 will result in the below error:

System.InvalidOperationException: "Failed to map the path '/'"

This might come as a surprise to ASP.Net 1.x programmers as Server.MapPath("..") works fine in the older versions. The newer version does not support ".." and it is recommended to use "~" instead. For e.g.:

Server.MapPath("~/Folder1");

posted on Sunday, January 21, 2007 2:34 PM

Feedback

# re: Failed to map the path '/' 9/5/2007 4:59 PM Bahar
Thank you for the explanation.It was too useful for me.

Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: 
Please add 7 and 8 and type the answer here: