Computer Science, asked by thunderbird1990, 1 year ago

How Do You Get To Type Objects From An Assembly That Is Already Loaded?

Answers

Answered by raghavithakur29
0

I have program which loads an assembly using Asssembly.LoadFrom method. Some time later I attempt to use Type.GetType to create a type from that assembly (using AssemblyQualifiedName), but the method returns null. If I set it to throw exception, it tells

Could not load file or assembly '...' or one of its dependencies. The system cannot find the file specified.

But I am sure the exact same assembly is already loaded (it shows in the AppDomain.CurrentDomain.GetAssemblies() list).

Anybody has an idea what could be wrong and/or how to solve this issue?

Similar questions