I have a .net app that I just opened on in visual studio 2010 and converted to 4.0 when it asked me on start-up. I go to try to build the site, and I get this error:
<
Try System.Web.HttpContext.Current.Server.MapPath("~/"). Notice the ~.
System.Web.HttpContext.Current.Server.MapPath("~/")
~