Exception on loading Bitmaps.

Sep 7, 2009 at 11:10 AM

System.ComponentModel.Composition.CompositionException was unhandled

Message="The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.\r\n\r\n1)

Resource 'Resources.Bitmaps.LoadDesktop.bmp' cannot be found in class 'FirstAddIn'.\r\n\r\n

Resulting in: An exception occurred while trying to create an instance of type 'FirstAddIn'.\r\n\r\n

Resulting in: Cannot activate part 'FirstAddIn'.\r\n

Element: FirstAddIn -->  FirstAddIn -->  DirectoryCatalog (Path=\"..\\Bin\\PlugIns\")\r\n\r\n

Resulting in: Cannot get export 'FirstAddIn (ContractName=\"HostedTool\")' from part 'FirstAddIn'.\r\n

Element: FirstAddIn (ContractName=\"HostedTool\") -->  FirstAddIn -->  DirectoryCatalog (Path=\"..\\Bin\\PlugIns\")\r\n\r\n

Resulting in: Cannot set import 'GUIController.MEFControl (ContractName=\"HostedTool\")' on part 'GUIController'.\r\n

Element: GUIController.MEFControl (ContractName=\"HostedTool\") -->  GUIController\r\n"

 -- Resource 'Resources.Bitmaps.LoadDesktop.bmp' cannot be found in class 'FirstAddIn'.\r\n\r\n -- I have LoadDesktop.bmp in the Resource folder.

I do not understand, why this exception occur.