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.