C# Assembly.Load vs Assembly.ReflectionOnlyLoad

As per Jon’s reply, it would be helpful to know what’s in LoaderExceptions. In lieu of this information, I think I can hazard a guess. From MSDN:

If the assembly has dependencies, the
ReflectionOnlyLoad method does not
load them. If you need to examine
them, you must load them yourself.

You need to attach a handler to AppDomain.ReflectionOnlyAssemblyResolve to help the CLR load any dependencies of the assembly you’re loading. Have you done this?

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)