doubts regarding reflection

F

forvino

Hi Geeks,


Ihave a doubt in dotNet reflection. I m developing a tool which will

returns set of public(access specifier) methods of the selected
assembly.


this works completely fine, when the selected components are
standalone assembly(only one assembly no reference made during
compilation)


But say for instance


I have two dlls
dbmaster.dll
UIMaster.dll
the second dll refers the first dll(ie dbmaster.dll).


Now when i m trying to load the dll via Assembly.LoadFrom method
it is throwing dependency not found. Is there any work around.
For me i just need methods of the UIMaster.


How can i achieve this. is there anything other than Reflection will
help solve this problem?
 
G

Guest

Hi Geeks,


Ihave a doubt in dotNet reflection. I m developing a tool which will

returns set of public(access specifier) methods of the selected
assembly.


this works completely fine, when the selected components are
standalone assembly(only one assembly no reference made during
compilation)


But say for instance


I have two dlls
dbmaster.dll
UIMaster.dll
the second dll refers the first dll(ie dbmaster.dll).


Now when i m trying to load the dll via Assembly.LoadFrom method
it is throwing dependency not found. Is there any work around.
For me i just need methods of the UIMaster.


How can i achieve this. is there anything other than Reflection will
help solve this problem?

Hi..

Assembly.LoadFrom works fine, may be the dependent assemblies are not part
of GAC or Application Execution path. Please check the properties of
reference assembly whether the copy local property is true.

Prakash Prabhu K
 
F

forvino

Hi prakash u got the point. my question how will i get the details list
of depencies for a given assembly. My objectective to get the methods
available in single assembly. I do not need anything from the
dependency assembly. is there any better alternate is there ???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top