Hi
Catch the exception and see where is the issue actually occured.
[STAThread]
static void Main()
{
try
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Login());
}
Catch (Exception ex)
{
Console.Out.WriteLine(ex.StackTrace);
}
}
The stcktrace will tell you at which line in which file the code failed.
Regards
Jegan