Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5632


Ignore:
Timestamp:
03/08/11 12:06:12 (12 years ago)
Author:
gkronber
Message:

#1429: removed call of Assembly.LoadFrom in DefaultApplicationManager to prevent problems with untrusted assemblies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/3.3/DefaultApplicationManager.cs

    r5445 r5632  
    100100      foreach (var desc in PluginDescriptionIterator.IterateDependenciesBottomUp(plugins.Where(x => x.PluginState != PluginState.Disabled))) {
    101101        foreach (string fileName in desc.AssemblyLocations) {
    102           var asm = Assembly.LoadFrom(fileName);
     102          // load assembly reflection only first to get the full assembly name
     103          var reflectionOnlyAssembly = Assembly.ReflectionOnlyLoadFrom(fileName);
     104          // load the assembly into execution context using full assembly name
     105          var asm = Assembly.Load(reflectionOnlyAssembly.FullName);
    103106          RegisterLoadedAssembly(asm);
    104107          // instantiate and load all plugins in this assembly
Note: See TracChangeset for help on using the changeset viewer.