A while ago I wrote an application which used plug-ins. It was based on WinForms but I recently reworked it to use WPF. One of the featuresÃÂ it has is the ability to drop plugins into the folder and have them startup (and starts any dependencies if they're not started).
Now, If I have the plugins already in the directory when I startup the main application everything runs okay.
If I load the main application without a plugin and then add the plugin sometime later I receive the following error: "The component 'XYZ' does not have a resource identified by the URI '/ThePluginAssembly;component/MyUsercontrol.xaml'" on the InitializeComponent() method in the UserControls constructor.
The key points are:
1. The user control is located in the plugin assembly
2. I am trying to create the usercontrol from inside the plugin assembly
3. The plugins are located in the same directory as the main application
4. The user controls only have problems when they are created through XAML. I have a couple of other usercontrols in the same assembly but I instantiate these using code. I only receive the error message when I attempt to create a UserControl in XAML.
5. I have read