Fixing the ASP.NET 5 and MVC 6 debugging issue with IIS Express in Visual Studio 2015 Update 1
Posted: (EET/GMT+2)
When debugging the new ASP.NET 5 and/or ASP.NET MVC 6 web applications, you receive the following error message:
Microsoft Visual Studio The selected debug option is IIS Express but this project is not a web project. To use IIS Express you need to add the wwwroot attribute to project.json.
This fix this issue, you need to modify your project configuration file. Here's the solution: edit project.json, and add the following entry:
... }, "webroot": "wwwroot" }
This will instruct IIS Express to load your project correctly, and Visual Studio to be aware that this is indeed a web project that can be run (and debugged) locally.
Hope this helps!