Reputation: 29720
When I click 'debug' [play] on my mvc in visual studio I want it to go to the root of the application,then my controller kicks in however its going directly to a .aspx page and then throwing an error. How do I get it to go to the root?
Upvotes: 2
Views: 53
Reputation: 407
You can specify what controller starts when launching from the Project settings "Web" tab. This can be accessed by right-clicking the project root and then selecting Properties, or alternatively by pressing Alt-Enter on your keyboard. If you leave the specific page blank, it should load the root. Otherwise, you can specify the Controller to start as well (ie. ControllerName/OtherRouteText/Etc) so that it looks similar to the actual route you would like to start.
Upvotes: 2