The view \'Index\' or its master was not found. The following locations were searched: ~/Views/ControllerName/Index.aspx ~/Views/ControllerName/Index.ascx ~/Views/Sh
Add the following code in the Application_Start() method inside your project:
Application_Start()
ViewEngines.Engines.Add(new RazorViewEngine());