XAML usercontrol trouble in XP
I have a fairly complex data bound XAML user control embedded in a winforms application. When I try to open the form from a Windows XP (SP3+updates) machine, I get a nullreferenceexception "Object reference not found". When I log on with the same user, but via a Windows 7 machine, it works fine (both in debugger, and release).
Apart from the fact that the XP machine doesn't have VS2010 installed, so I can't do any fancy debugging, is there anything else I can do to return more useful debug data for the failing xaml control. Also, is anyone aware of any XP/windows 7 differences that might 开发者_运维百科be causing this?
Thanks!
What I did to catch more specific information is surround my InitializeComponent(); with try catch, and then launch a MessageBox.Show with the exception like this:
try
{
InitializeComponent();
}
catch (Exception e)
{
MessageBox.Show(e.toString());
}
If you can do that, you can post us more specific information about your exception.
Note: That specific problem happened to me. I surrounded the Initialize and discovered that I had to add to my Release project running on XP some more dlls...
精彩评论