If you get ReflectionTypeLoadException during loading an assembly to your AppDomain or running an assembly, it will be hard to find which assembly cause the problem from the given standard error.
Generally the exception says something like “Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

You must have a look to the LoaderExceptions in the ReflectionTypeLoadException to understand exact problem. That property contains the whole resolution fail exceptions in it. But if you don’t have source code of your program or if you can not debug your program then it will be hard for you to access LoaderExceptions during run time. To solve this problem and take some help, you can use AssemblyLoadLogger, which I developed it for this purposes.

Just run AssemblyLoadLogger.exe, click File/Load Assembly menu and select your assembly which cause the problem. You will see the loading results.

An example screenshot of the AssemblyLoadLogger

An other screenshot of the AssemblyLoadLogger

Have a good day …

Share: