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.

Anuj holds professional certifications in Google Cloud, AWS as well as certifications in Docker and App Performance Tools such as New Relic. He specializes in Cloud Security, Data Encryption and Container Technologies.

Initial Consultation

Anuj Varma – who has written posts on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.