Hi,
I am using reflection to load a dll and I am getting the following exception when I try to get the Assembly types using .GetTypes(). Please advice!
System.Reflection.ReflectionTypeLoadException was unhandled
Message="Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."
Source="mscorlib"
StackTrace:
at System.Reflection.Module.GetTypesInternal(StackCrawlMark& stackMark)
at System.Reflection.Assembly.GetTypes()
at ReflectAssembly.Class1.Main(String[] args) in C:\Documents and Settings\aalamo\Desktop\ReflectAssembly\Class1.cs:line 48
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()