The blog of flying mind

March 24, 2008

ReflectionTypeLoadException

Filed under: Software

Also see: My Presidential Endorsement:

Also see: Memory Model

Also see: Brad Abrams’ pixel8 Interview Podcast posted

If a type can’t be loaded for some reason during a call to Module.GetTypes(), ReflectionTypeLoadException will be thrown. Assembly.GetTypes() also throws this because it calls Module.GetTypes().

The Message for this exception is “One or more exceptions have been thrown while loading the types” or “Unable to load one or more of the types in the assembly”, which doesn’t seem very descriptive. But, the exception actually provides more info that that. Just get the LoaderExceptions property of the ReflectionTypeLoadException instance. That will give an array of the exceptions caught while loading all of the types from the module. If the exceptions are due to an assembly loading problem, see my general debugging advice.


http://blogs.msdn.com/suzcook/archive/2003/08/11/57236.aspx

Comments »

The URI to TrackBack this entry is: http://cahtter.blogsome.com/2008/03/24/reflectiontypeloadexception/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.






















Get free blog up and running in minutes with Blogsome
Theme designed by Hadley Wickham