Launching my debug MVC3 application opens a specif

2019-04-05 19:53发布

问题:

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?

回答1:

Project properties => Web => Start Action

and take your pick



回答2:

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.