Difficulty with MVC Code Debugging

Asked

Viewed 44 times

1

One of the problems I have had in the studies is the way the code debugging is done in mvc, I can’t find a logic to solve this.

OBS:

  • The sample code option is not formatting the code properly.
  • The image sending option is in trouble, only sends after the second try

I have this:

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

  • 1

    You can put in your question the contents of the file App_Start/RouteConfig.cs?

  • Friend Tiago, you spoke Russian now, but I can check the problem, I have at Views - Person and not home.

  • Tiago, the site is problematic in these options, at least I can not add the code:

  • 1

    @Ciganomorrisonmendez , I appreciate the tip, that’s it, controller = "Home", so just change and that’s it, it works normal, the way it was I had to add the way

1 answer

2


Check yours in the file App_Start/RouteConfig.cs of its application there is the following rule:

    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 }
        );
    }

Browser other questions tagged

You are not signed in. Login or sign up in order to post.