при запросе контроллера MVC получаю ошибку - PullRequest
0 голосов
/ 24 октября 2019

Ошибка:

The resource cannot be found.

Description: `HTTP 404`. 
The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Requested URL: /Views/Department/Index.cshtml

Всякий раз, когда я запрашиваю даже http://localhost:59475/Home/Index, я получаю ошибку 404.

У меня 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 }
        );
 }
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...