Quote Originally Posted by nelo
Can you put the code that is causing this? The exception message gives you a hint...

You don't need to put the whole code file just the method/function or part of the function. Particularly close to the line 17 in your Program.cs. And needless to say...use the code tags

LINE WHERE THIS ERROR OCCURS

Application.Run(new MainForm());

THIS IS LINE 17 OF PROGRAM.CS