I wrote a simple console app in Visual Studio 10 on a Windows 7 32 bit machine using all managed code. It works fine in debug mode, but when I deploy it to another machine and run it, I get the message,
[my assembly] has encountered a problem and needs to close. We are sorry for the inconvenience.
… and then it generates a cryptic error report that I cannot imagine ever finding useful. Here’s the thing: the exception is occurring inside a try-catch statement that is designed to gracefully handle the error; the exception does not seem to be caught, however.
How can this be? How can I fix it?
Either the exception is thrown from a diferent place in the code, or you do not list the particular type of the exception (or one of its parent types) in the catch branches
The “cryptic” error message actually is designed to help you find out: what went wrong (the type of the exception), where did it occur (stack trace). You should learn to read/”decypher” it