In my development environment my application runs, then when I installed it in a client machine it is not starting, my only idea to see the reason was to show a message box with the exception:
AppDomain.CurrentDomain.UnhandledException
+= delegate(object sender, UnhandledExceptionEventArgs args)
{
var exception = (Exception) args.ExceptionObject;
MessageBox.Show("El programa se ha detenido debido a un error interno: " +
Environment.NewLine + exception.Message + exception);
Environment.Exit(1);
};
This shows the next message
Object reference not set to an instance of an object. controli.Program.Main()
I am familiar with that exception but not at Program.cs
file, how is it possible that this fails in a client machine? And not in mine.
Finally I know about remote debugging but the problem is that it only allows to connect to a process has already started, and my application throws when loading
Do you have any suggestions or tools that I can use