I wrote a small WinForms application in C# with Visual Studio 2010.
It worked quite well in my environment, but I noticed that I need to run the application at the customer site on a Windows Server 2003 SP2 server with the .NET Framework 2.0 installed.
I then built the application with .NET Framework 2.0 as the target framework. Again the application ran perfectly fine on my computer.
At the customer server I noticed a strange behaviour. After starting the application, a black window opens for half a second and closes afterwards. I don't get an error message.
I discovered that the application doesn't even enter the main function.
How can this be debugged further, and/or solved?