Hi Schorschi,
If I understand you correctly, you're right; you need to walk the stack. From Assembly you can get the current assembly, the calling assembly or the
application, but anything in the middle you need to get on your own.
Craig VB.Net Team
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).
--------------------
From: Sc*******@DSLExtreme.COM (Schorschi)
Newsgroups: microsoft.public.dotnet.languages.vb
Subject: Satellite Assemblies Not Visible from GetCallingAssembly?
Date: 5 Sep 2004 19:16:51 -0700
Organization: http://groups.google.com
Lines: 11
Message-ID: <21**************************@posting.google.com >
NNTP-Posting-Host: 69.167.160.220
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1094437012 21367 127.0.0.1 (6 Sep 2004 02:16:52 GMT)
X-Complaints-To: gr**********@google.com
NNTP-Posting-Date: Mon, 6 Sep 2004 02:16:52 +0000 (UTC)
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXS01.phx.gbl!cpmsftn gxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul. t-online.de!t-online.de!
newsfeed.gamma.ru!Gamma.RU!newsfeed.media.kyoto-u.ac.jp!postnews2.google.com!not-for-mailXref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.languages.vb:227573
X-Tomcat-NG: microsoft.public.dotnet.languages.vb
I have 3 assemblies... the application, a common assembly
(classlibrary), and a resource assembly (classlibrary).
When the common Assembly calls a function in the resource assembly, in
the resource assembly, I am trying to get the 'assembly' reflection of
the caller, so I am expecting GetCalling Assembly on the following
sequence to return the 'common' assembly...
application->common->resource.method1->resorce.method2 returns
resource as the calling assembly. How can I get the common assembly
to be visible? Walking the stack frame?
Thanks & Regards
Santhosh Somayajulu
Internet Information Services Team,
Microsoft