code_junkie

WPF throwing an exception parsing XAML that includes a Winforms User Control

Nov 11th, 2011
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll
  2.  
  3. Additional information: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1) Error in markup file 'OsgViewer;component/osgviewerwin.xaml' Line 1 Position 9.
  4.  
  5. <Window x:Class="OsgViewer.OsgViewerWin"
  6. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  7. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  8. xmlns:int="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
  9. xmlns:myns="clr-namespace:MyGlobalNS.MyNS;assembly=MyAssembly"
  10. ...
  11. <int:WindowsFormsHost x:Name="m_Host">
  12. <myns:CMyClass x:Name="m_MyClass" />
  13. </int:WindowsFormsHost>
  14. ...
  15. </window>
Add Comment
Please, Sign In to add comment