c# - The resource cannot be found. after adding new page? -


i have created new mvc4 web application, , adding new view in views called login.aspx.

when try access way accessing about.aspx ( generated automatically new project ) - receiving "the resource cannot found." type of error.

  • what cause issue ?

sole view not enough in asp.net mvc add new page application. have to:

  1. create controller corresponding action, or add new action 1 of existing controllers.
  2. implement action return necessary view (login in case).
  3. make sure action covered 1 of existing routes. if not - add new route.

for details can review this tutorial on msdn.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -