ASP.NET MVC Error

Error when running ASP.NET MVC application from Visual Studio: “It is an error to use a section registered as allowDefinition=’MachineToApplication’ beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS." Stop inventing painful hacks, the solution is here.
How to Reproduce This Error
This is what I have to do to get this error in Visual Studio:

Link: https://dzone.com/articles/aspnet-mvc-error-quotit-is-an-error-to-use-a-secti?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev