MSBuild error: Failed to map the path

I’m trying to use MSBuild to build my web solution (asp.net 2.0). I’m using master page for structure consistency across the pages. I put the following codes on the master page: <!--#include virtual="/sites/nav/includes/header.inc"-->). When I ran MSBuild.exe to build the solution, I got the following error: "Failed to map the path "/sites/nav/includes/header.inc", this doesn’t make sense since the header.inc file is sitting under IIS virtual directory folder (c:\inetpub\wwwroot\sites\nav\includes\), for some reasons, the compiler just could not find it.

Is this a bug in MSBuild or something relates to aspnet_compiler Any ideas

Best regards,

John



Answer this question

MSBuild error: Failed to map the path

  • Kuhan Milroy

    John,

    I assume you're using the Web Deployment Projects to build your solution. For issues with that, or any other issues relating to ASP.NET compilation and builds, please post to the ASP.NET forums at http://forums.asp.net/. Someone there will be able to assist you.

    Neil



  • MSBuild error: Failed to map the path