Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Hi I have the following error message on this line item: static void Main() //an

ID: 3647934 • Letter: H

Question

Hi
I 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.