To fix this issue, do these steps:
- Right click the Project name in Solution Explorer of Visual Studio
- Select
Set as StartUp Project
from the menu
- Re-run your project
It should work!
If it did not work, be sure that you have set your start page. If your project is C# Windows Application or C# Console Application, try this:
- Right click the Project name in Solution Explorer of Visual Studio
- Select
Properties
- Select the Application tab
- In the
Output Type
drop box
- Select the correct application type of your project
- Re-run your project and let me know if it won’t work.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…