Run MVC project Visual Studio

When you want to run MVC project you need to load a specific request for page. The component that control the request is the Controller the C from MVC. So you will take the controller URL and paste it in the project Web properties. So first you will learn how to config your start point of the application. Then after you save the configuration you will run it simply by clicking the Start Debugging button or pressing F5.

Step 1: Open the controller you want it to be the start point of the project.

Step 2: Copy the controller URL. In this case it is My/.

Step 3: Right click the project then click on Properties.

Step 4: Click Web then select Specific Page then paste the controller URL.

Step 5: Click Start Debugging button or press F5. Note you can also start without debugging by pressing Ctrl + F5.




mvc controller debugging debug