I installed a Windows C # forms application on a client computer that does not have Visual Studio installed.
When the application starts, it immediately crashes with a dialog box saying: "ProgramX has stopped working. The problem has caused the program to stop working correctly. Close the program." The only button in the dialog box is "close the program."
I would like to see an exception message and a stack trace so that I can diagnose the problem.
I tried installing the .Net SDK that comes with "windbg". I ran the program in windbg and managed to get it to say "CLR exception". However, I cannot get windbg to print an exception message or a stack trace. It will not load SOS or PSSCOR2 due to loading DLL messages, even after many attempts. There should be an easier way!
(If your answer includes windbg, please provide detailed step-by-step instructions as I tried and failed to complete this approach.)
The application is an .Net 3.5 application. .Net 3.5 and .Net 4 are installed on the machine. There is nothing in the event log (I can find).
source share