473,403 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

doubts regarding dotNet reflection

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?

Nov 17 '05 #1
2 1395
firstly u should load dependent assembly. in your example "dbmaster.dll"
must be in GAC.

Assembly.LoadFrom(..);//Load dbmaster.dll

And then load

Assembly.LoadFrom(..);//Load UIMaster

--
HTH

Thanks,
Yunus Emre ALPÖZEN
BSc, MCSD.NET

<fo*****@gmail.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
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?

Nov 17 '05 #2
Hi Yunus,

Is it must that my dll should be in GAC. reflector.net does the
reverse enginneering even wen it is not loaded in GAC.

Even I am able get the method details if i dont have any references.

Yunus Emre ALPÖZEN [MCSD.NET] wrote:
firstly u should load dependent assembly. in your example "dbmaster.dll"
must be in GAC.

Assembly.LoadFrom(..);//Load dbmaster.dll

And then load

Assembly.LoadFrom(..);//Load UIMaster

--
HTH

Thanks,
Yunus Emre ALPÖZEN
BSc, MCSD.NET

<fo*****@gmail.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
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?


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: assi | last post by:
Hello all We are developing a large dotnet application, which includes ~ 120 assemblies. (total size of all binaries is ~ 20MB). Our application also references the following dotnet assemblies:...
2
by: forvino | last post by:
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,...
0
by: Joe Bloggs | last post by:
Hi all, I take the pleasure to inform that Dotnet Commons Logging has been released for use. Dotnet Commons Logging, a subproject of the Donet Commons project currently located under the...
6
by: ritesh | last post by:
Hi, I have been reading some text on C and C++ (i.e advanced books). One of the books mentioned that C++ requires a runtime support whereas C does not - what the author was trying to say was...
5
by: Chua Wen Ching | last post by:
Hi there, Sorry for the late reply. I was busy attending Microsoft Teched 2004 Malaysia. Oh i didn't know you can set off the security in CAS. Sigh! on install you could have an encrypted...
0
by: none | last post by:
Hello This question is more Interop related but since that newsgroup seems to be abandoned, I thought I give this newsgroup a try. I have an OCX that exposes several classes and I need to...
2
by: VMI | last post by:
I'm having doubts as to how the compiler interprets this If statement: bool bIsTrue = true; if (! bIsTrue) { //RUN PROCESS } Here, will "RUN PROCESS" be executed? Or is this just wrong?...
0
by: forvino | last post by:
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,...
2
by: Dean R. Henderson | last post by:
For an ASP.NET web application, is there a way for one session (with appropriate security authorization) to set a HttpSessionState variable to point to another session and execute the Abandon...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.