XamlParseException in WPF RRS feed

  • Question

  • I have a WPF Browser Application which has a UserControl. I have added another WPF Browser Application and a reference to the dll file present in the container application. After setting the added application as the Startup Object, i get an XamlParseException saying that the instance of the referenced control cannot be created. The exact error is : Cannot create instance of 'VolumeControl' defined in assembly 'VolumeControlLibrary, Version=, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target of an invocation. Error at object 'System.Windows.Controls.Grid' in markup file 'WpfBrowserApplication2;component/page1.xaml' Line 6 Position 10. Please help me. Its urgent.
    Thursday, December 17, 2009 8:09 AM


All replies

  • Try to recheck your Naming Space for all the attatched User Controls.
    For instance if you named you project with name that include spaces, the Visual Studio will replace it with an underscore so check that your Name Space within all contorls and windows in your project. 
    Thursday, December 17, 2009 9:20 AM
  • thanx adham. actually i solved the problem by allowing full trust.
    Sunday, December 20, 2009 8:34 AM