#870 closed defect (done)
ApplicationManager.GetTypes throws exception when dynamic methods assemblies are loaded (e.g. by ProgrammableOperator)
Reported by: | gkronber | Owned by: | gkronber |
---|---|---|---|
Priority: | highest | Milestone: | HeuristicLab 3.3.0 |
Component: | PluginInfrastructure | Version: | 3.2 |
Keywords: | Cc: |
Description
Exception message: 'asm.Location' threw an exception of type 'System.NotSupportedException'
internal static IEnumerable<Type> GetTypes(Type type, IPluginDescription pluginDescription, bool onlyInstantiable) { PluginDescription pluginDesc = (PluginDescription)pluginDescription; return from asm in AppDomain.CurrentDomain.GetAssemblies() where !string.IsNullOrEmpty(asm.Location) // ignore dynamically generated assemblies where pluginDesc.AssemblyLocations.Any(location => location.Equals(Path.GetFullPath(asm.Location), StringComparison.CurrentCultureIgnoreCase)) from t in GetTypes(type, asm, onlyInstantiable) select t; }
Change History (5)
comment:1 Changed 15 years ago by gkronber
- Status changed from new to assigned
comment:2 Changed 15 years ago by gkronber
comment:3 Changed 15 years ago by gkronber
- Resolution set to fixed
- Status changed from assigned to closed
comment:4 Changed 14 years ago by swagner
- Milestone changed from Iteration 4 to Current
Milestone Iteration 4 deleted
comment:11 Changed 14 years ago by swagner
- Milestone changed from Current to HeuristicLab 3.3.0
Milestone Current deleted
Note: See
TracTickets for help on using
tickets.
Fixed with r2785.