ASP .net MVC Invoking default controller and action vs Setting a startup page
Posted
by
SARAVAN
on Stack Overflow
See other posts from Stack Overflow
or by SARAVAN
Published on 2011-01-11T06:24:19Z
Indexed on
2011/01/11
13:53 UTC
Read the original article
Hit count: 282
Hi, I am developing code on the sample ASP .net MVC template provided by VS2010. The first time I ran the code without adding anything, the index.aspx page was invoked which is expected. But for some reasons I added a login.aspx and then accidentally set that as a startup page. Now when I ran the application the default startup url look like http://localhost/Views/login.aspx. I am thinking this is not a valid MVC routing path and I get the requested resource cannot be found error.
I am not sure how to revert this back and make sure the default ../home/index is invoked. Can any one throw some light on this? Also should I not set the startup page as we do in asp .net webforms?
© Stack Overflow or respective owner