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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.