This is a ridiculous error that is generated depending on the .Net framework used. When you are using Server.MapPath in .net framework 3.5 be sure to use Server.MapPath("..") and in .net framework 2.0 you should use Server.MapPath("~/") to get the root. Well bad news is this is not the case always. If one does not work try the other. Yes, do trial and error!
You are here: Home ASP.NET Stuff Failed to map the path '/'
Tuesday, January 26, 2010
Failed to map the path '/'
Posted by
Kodi at 9:37 PM
This is a ridiculous error that is generated depending on the .Net framework used. When you are using Server.MapPath in .net framework 3.5 be sure to use Server.MapPath("..") and in .net framework 2.0 you should use Server.MapPath("~/") to get the root. Well bad news is this is not the case always. If one does not work try the other. Yes, do trial and error!
Labels:
ASP.NET Stuff
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment