Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 543
Only Bolivian Here Avatar asked Nov 08 '11 13:11

Only Bolivian Here


2 Answers

Project properties => Web => Start Action

and take your pick

enter image description here

like image 53
Marc Gravell Avatar answered Nov 20 '22 10:11

Marc Gravell


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.

like image 42
Pankaj Upadhyay Avatar answered Nov 20 '22 10:11

Pankaj Upadhyay