Posts Tagged ‘Reflection’

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information


I’m currently developing an application that has a plugin style or loading of DLL dynamically. So this is how I did I have created 4 projects;

  1. Plugin Interface project (Class Library)
  2. Test Plugin project (Class Library)
  3. Consumer project (Class Library) – read and execute the plugins
  4. Windows Apps that uses/references the Consumer project

When I run the #4 project I get this error “Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information“, as I’m just a beginner and can’t find a solution out of my head so I did research on the web and seen lots of solutions and recommendations but none of them works.

Then I tried to have the project referenced from #1 project and you know what it works :) .

, , , ,

No Comments


What is a Reflection?

Reflection is the programmatic act of reading the metadata associated with a type.

Reflection is most useful in conjunction with attributes, which are a way of adding information to a type and affecting the type’s behavior.

It allows you to define new types during runtime and emit the corresponding IL code and metadata (using the services found in the System.Reflection.Emit namespace

, ,

No Comments



SetPageWidth