Reputation: 36753
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?
Upvotes: 10
Views: 2063
Reputation: 13594
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.
Upvotes: 1
Reputation: 1063704
Project properties => Web => Start Action
and take your pick
Upvotes: 21