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

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

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