Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

MVC Hitting HomeController Index action twice

$
0
0

I am attempting to work with an MVC 5.0 project type in VS 2015 that has has hardly been modified. I added a constructor to the home controller to Inject a service, but have made no other changes. A break point in my Index action is getting hit twice one start up. I removed ALL the HTML from the Index View and everything but the <html><head> and <body> tags from the _Layout file. Fiddler only shows one call happening, but the break point is definitely hit twice.  I tried removing the constructor and that did not make a difference either.

Any information on what may be wrong would be greatly appreciated.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>