title: Problems with ReflectionOnly load context
body: <p>I am trying to speed up my app by loading certain DLLs into the ReflectionOnly context.</p>
  
  <p>This loading occurs on a secondary AppDomain, which registers both AssemblyResolve and AssemblyReflectionOnlyResolve event handlers.</p>
  
  <p>For some reason, when loading these assemblies, the code fails on this method:</p>
  
  <pre><code>Type[] tps = dll.GetTypes();
  </code></pre>
  
  <p>This throws an exception saying:</p>
  
  <blockquote>
    <p>Cannot resolve dependency to assembly 'System, Version=2.0.0.0,
    Culture=neutral, PublicKeyToken=b77a5c561934e089' because it has not
    been preloaded. When using the ReflectionOnly APIs, dependent
    assemblies must be pre-loaded or loaded on demand through the
    ReflectionOnlyAssemblyResolve event.</p>
  </blockquote>
  
  <p>When loading the assemblies not into the Reflection Only context, this works as assumed.</p>
  
  <p>Are there any gotchas/caveats for using the Reflection Only context? why doesn't the runtime able to find this assembly in the GAC and load it as usual? am i missing something?</p>