Only Bolivian Here
Only Bolivian Here

Reputation: 36753

Launching my debug MVC3 application opens a specific .cshtml file in the browser

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

Answers (2)

Pankaj Upadhyay
Pankaj Upadhyay

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

Marc Gravell
Marc Gravell

Reputation: 1063704

Project properties => Web => Start Action

and take your pick

enter image description here

Upvotes: 21

Related Questions