A ReflectionTypeLoadException is thrown because one of your types throws an exception during static initialization. This can happen if the method / property / field signatures depend on a type that is not available. I recommend that you catch this exception and check the contents of the LoaderExceptions property of the exception, as suggested.
source share