My MS Visual C# program was compiling and running just fine. I close MS Visual C# to go off and do other things in life.
I reopen it and (before doing anything else)
It is important that the Main method is placed in the class that is properly configured in Visual Studio as a start-up object:
SimpleAIMLEditor.Program from the drop-down for your start-up objectNow run your application again. The error will disappear.