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

后端 未结 4 1188
滥情空心
滥情空心 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:13

    We had the same problem, IISRESET didn't do it. It turned out that the Virtual Directory we trying to map has a double backslash (d:\folder\\subfolder\) in the naming (IIS virtual directory was created with powershell script). Removing the extra backslash made HostingEnvironment.MapPath stop throwing exceptions.

    Just in the case this could help somebody :-)

提交回复
热议问题