How to debug XamlParseException in WPF?Hi,<br><br>  I am getting XamlParseException for one of my xamls which reads somethign like this. This xaml is for Usercontrol.<br><br><b><i>&quot;Cannot assign root instance of type &lt;class name of xaml.cs&gt; to &lt;class name of xaml.cs&gt;&quot;. And it is showing error occured at Line 0 and Position 0.</i></b><br><br>I looked at the Debug -&gt; Output window to find some more exceptions but unfortunately I couldn't found any other than the <b>XamlParseException. <br><br>Can someone please help me in figuring out the exact issue?<br><br>Thanks,<br>shaba.</b>© 2009 Microsoft Corporation. All rights reserved.Thu, 07 May 2009 13:17:19 Zab97358e-df84-4c13-bb4c-85e0843e4653http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/ab97358e-df84-4c13-bb4c-85e0843e4653#ab97358e-df84-4c13-bb4c-85e0843e4653http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/ab97358e-df84-4c13-bb4c-85e0843e4653#ab97358e-df84-4c13-bb4c-85e0843e4653narmishabahttp://social.msdn.microsoft.com/Profile/en-US/?user=narmishabaHow to debug XamlParseException in WPF?Hi,<br><br>  I am getting XamlParseException for one of my xamls which reads somethign like this. This xaml is for Usercontrol.<br><br><b><i>&quot;Cannot assign root instance of type &lt;class name of xaml.cs&gt; to &lt;class name of xaml.cs&gt;&quot;. And it is showing error occured at Line 0 and Position 0.</i></b><br><br>I looked at the Debug -&gt; Output window to find some more exceptions but unfortunately I couldn't found any other than the <b>XamlParseException. <br><br>Can someone please help me in figuring out the exact issue?<br><br>Thanks,<br>shaba.</b>Mon, 02 Mar 2009 13:53:18 Z2009-03-02T13:53:18Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/ab97358e-df84-4c13-bb4c-85e0843e4653#aa7c6d2f-f73b-4eed-8f5b-13ff8dcf3f67http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/ab97358e-df84-4c13-bb4c-85e0843e4653#aa7c6d2f-f73b-4eed-8f5b-13ff8dcf3f67Dieterdphttp://social.msdn.microsoft.com/Profile/en-US/?user=DieterdpHow to debug XamlParseException in WPF?Hello<br/> <br/> try to put a try/catch around the this.InitializeComponent(); in ctor in the of your form.<br/>  <br/>            <br/> kind regards<br/> D.Thu, 07 May 2009 13:17:19 Z2009-05-07T13:17:19Z