In Visual Studio when I press F5
in this particular MVC3 project, it opens:
localhost:36185/Views/Auction/Details.cshtml
When in any other project, when I press F5
it correctly open the Home/Index
action method:
http://localhost:36185
Why is this opening a specific View instead of using the correct Home/Index action? What setting is interfering?
Project properties => Web => Start Action
and take your pick
You can try the solution given by Marc Gravell. If that doesn't work, you might want to check the Global.ascx file for routing configuration.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With