Answer the question
In order to leave comments, you need to log in
Why does Index() fire twice?
I have VS 2015 Community UP1, ASP.NET5 MVC6. When creating a new project, the HomeController class is created by default, where there is
public IActionResult Index()
{
return View();
}
Answer the question
In order to leave comments, you need to log in
Well, you can have whatever you want in any configuration, as a rule, this does not play a special role. Let's clarify the sequence of actions - you deploy the application, turn on debugging, open the default page and you hit the breakpoint twice? Or do you take some other steps that you decided not to mention?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question