I have a WPF program that works fine on a development PC and on client PC 1. But on client PC 2, it immediately starts when it starts using the "Send Report to Microsoft" window. I would appreciate some advice on how to track what's wrong. Here is what I tried:
Paste try-catch into my main window class:
public MainWindow() { try { MessageBox.Show("Before InitComp()"); InitializeComponent(); MessageBox.Show("Before Sub1()"); Subroutine1(); MessageBox.Show("Before Sub2()"); Subroutine2(); ... etc ... } catch (Exception ex) { ... code for MessageBox display error here ... } }
The idea is to try to isolate which part of the startup sequence fails, but the first debug message "Before InitComp ()" does not even appear. Thus, it seems that the application crashes even before the start of my code.
- One possibility is to install the entire VS2008 on client PC 2, load in the source, and use the IDE debugger to track the problem. This is probably most effective in finding a problem. But I do not want to do this because: a) client PC 2 does not belong to me, b) it does not scale: I have to do the same for client PC 3/4/5 / ... and c) it violates my company VS2008.
How do I debug this problem?
source share