Posts Tagged ‘Reflection’
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information
Posted by: admin in Reflection on July 20th, 2010
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;
- Plugin Interface project (Class Library)
- Test Plugin project (Class Library)
- Consumer project (Class Library) – read and execute the plugins
- 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
.
What is a Reflection?
Posted by: admin in Definition on March 27th, 2009
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