Failed to map the path '/'. .net 4.0

后端 未结 4 1180
滥情空心
滥情空心 2021-02-18 20:35

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:

<         


        
4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-18 21:22

    Try System.Web.HttpContext.Current.Server.MapPath("~/"). Notice the ~.

提交回复
热议问题