Opened 6 weeks ago

#3035 new defect

ReflectionTypeLoadException does not tell about reasons why a plugin might not be loaded

Reported by: abeham Owned by:
Priority: medium Milestone: HeuristicLab 3.3.17
Component: PluginInfrastructure Version:
Keywords: Cc:

Description

We should include the LoaderException in the error message, otherwise it's difficult to tell what went wrong:

HeuristicLab version: 3.3.16.17186
ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.Assembly.GetTypes()
   at HeuristicLab.PluginInfrastructure.Manager.PluginValidator.LoadPlugins(IEnumerable`1 pluginDescriptions)
   at HeuristicLab.PluginInfrastructure.Manager.PluginValidator.DiscoverAndCheckPlugins()
   at HeuristicLab.PluginInfrastructure.Manager.PluginValidator.get_Plugins()
   at HeuristicLab.PluginInfrastructure.Manager.PluginValidator.get_Plugins()
   at HeuristicLab.PluginInfrastructure.Manager.PluginManager.DiscoverAndCheckPlugins()
   at HeuristicLab.PluginInfrastructure.Starter.StarterForm..ctor()
   at HeuristicLab.PluginInfrastructure.Starter.StarterForm..ctor(String[] args)
   at HeuristicLab.PluginInfrastructure.Main.Run(String[] args)

Change History (0)

Note: See TracTickets for help on using tickets.