Hi I have the following error message on this line item: static void Main() //an
ID: 3647934 • Letter: H
Question
HiI have the following error message on this line item: static void Main() //and this line item//class static void Main(string[] args).
//ERROR MESSAGE//
Error 1 Program 'C:UsersocdobbsDocumentsVisual Studio 2010ProjectsTest1Test1obj†ReleaseTest1.exe' has more than one entry point defined: 'Test.DemoScout.Main()'. Compile with /main to specify the type that contains the entry point. C:UsersocdobbsDocumentsVisual Studio 2010ProjectsTest1Test1Program.cs 13 21 Test1
What is the proper way to format the second main?
Thanks
Explanation / Answer
well it needs to exception so do it (1) Open Visual Studio with your project (2) Debug Menu, Exceptions (3) For the exception types you care about tick the Thrown box. This will make it so that whenever an exception of the types chosen is thrown you will automatically break into it. When you want to go back to regular debugging go back to that same Exceptions window and click "Reset All" and you'll go back to the default settings.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.