ReflectionTypeLoadException Unable to load one or > more of the requested types
<p>I have the following code , that loades all aseemblies that are refrenced by my porject and all referenced used by them</p>

<pre><code>var types = AppDomain.CurrentDomain.GetAssemblies().SelectMany(t =&gt; t.GetTypes())
                        .Where(t =&gt; t.IsClass &amp;&amp; !t.IsAbstract &amp;&amp; (typeof (MyType).IsAssignableFrom(t)));


foreach (var type in types.Where(type =&gt; typeof (MyType).IsAssignableFrom(type)))
                {... do something ...}
</code></pre>

<p>On my dev box this works as expected , on other environment this causes an exception </p>

<blockquote>
  <p>System.Reflection.ReflectionTypeLoadException: Unable to load one or
  more of the requested types. Retrieve the LoaderExceptions property
  for more information.</p>
</blockquote>

<p>Why is that exception thrown ?
is it possible to refactor my code to make it so that exception is ignored ?</p>