public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
}
I don't know why it has opened http://localhost:00000/Views/Dashboard/Index.cshtml
in this location
What can do that?
Try this
1) Right click on your project solution
2) Select Property
3) Select Web option and then Select Current Page