MVC apps–set as start page
Of course, MVC does not have the concept of a web page – it is more a web view. The view cannot be accessed directly (unlike a page) – and can only be accessed through a controller action. So , in Visual Studio,setting a razr view as the default start page is meaningless. In fact, VS will throw the following error (when you run the app)
Server Error in ‘/’ Application. /Views/Index.cshtml cannot be found
Solution
Project Properties –> Web –> Specific Page – CLEAR the URL !
That fixes it.
Leave a Reply