I have a dll called Test.dll in which I have a class called ABC which has a method FindTYpe.
Now, I have a project called TestB and I have added the reference of Test.dll in TestB.
Now, if I am trying to find a type XYZ in TestB, from Test.ABC.FindTYpe(), it’s throwing an exception, TypeNotLaoded Exception.
Please have a look at the problem and tell me how can I resolve it.
You’ll need to post your code for FindType(). My guess is that you’re doing something like;
to find a list of types to search through, and the type in TestB.dll isn’t in Test.dll, so the item isn’t found.
You might want to try something like this instead;
which should give you the all types loaded into the current application domain — which, unless you’re doing anything odd with appdomains, will be the list of all types loaded into your program.
None of the code has been tested, but it should help you find the classes and methods you’ll need to use.