In the code that you specify, the problem is that the Home entry point expects an array of strings passed from the system when the program was called (this array can be null, contain no elements)
to correct changes
static void Main(string args)
to
static void Main(string[] args)
You may get the same error if you declared your "Basic" of any type except "void" or "int"
therefore, the signature of the "Main" method should always be
static
From MS (...) The main method can use arguments, in which case it takes one of the following forms:
static int Main(string[] args) static void Main(string[] args)
source share