PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 3.00 average.

getting parent assembly through reflection recursively - help requ

 
 
=?Utf-8?B?TmlyYW5qYW4=?=
Guest
Posts: n/a
 
      20th May 2005
hi,

Can we get name of parent assembly in a called component recursively ?
i know Assembly.GetCallingAssembly() will return one level above. I need to
check the parent of parent also. is it possible.

can anyone help me.
thanks
niranjan

 
Reply With Quote
 
 
 
 
Mattias Sjögren
Guest
Posts: n/a
 
      21st May 2005

>Can we get name of parent assembly in a called component recursively ?
>i know Assembly.GetCallingAssembly() will return one level above. I need to
>check the parent of parent also. is it possible.


Try using the StackTrace class.



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
Reply With Quote
 
=?Utf-8?B?TmlyYW5qYW4=?=
Guest
Posts: n/a
 
      23rd May 2005
Thanks for the reply.

I am able to track the call in case of component to component call.
Now i have another similar issue. I have a serviced component deployed as
server application. I have a console application calling the server package
component. in this case, from the server package component, i am not getting
the name of the application which invoked the component. is this possible
some how.

thanks
niranjan

"Mattias Sjögren" wrote:

>
> >Can we get name of parent assembly in a called component recursively ?
> >i know Assembly.GetCallingAssembly() will return one level above. I need to
> >check the parent of parent also. is it possible.

>
> Try using the StackTrace class.
>
>
>
> Mattias
>
> --
> Mattias Sjögren [MVP] mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.
>

 
Reply With Quote
 
=?Utf-8?B?TmlyYW5qYW4=?=
Guest
Posts: n/a
 
      24th May 2005
hi,

i am not getting the full stack for cross package calls. ie when i call
component B from component A & when both are in different COM+ package, then
i am not getting the originial caller.
can we get this by some means in .net

thanks
niranjan

"Mattias Sjögren" wrote:

>
> >Can we get name of parent assembly in a called component recursively ?
> >i know Assembly.GetCallingAssembly() will return one level above. I need to
> >check the parent of parent also. is it possible.

>
> Try using the StackTrace class.
>
>
>
> Mattias
>
> --
> Mattias Sjögren [MVP] mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems loading assembly using System.Reflection.assembly TheVillageCodingIdiot Microsoft VB .NET 0 16th Jul 2009 06:32 PM
Problems loading assembly using System.Reflection.assembly TheVillageCodingIdiot Microsoft Dot NET Framework 1 15th Jul 2009 08:34 PM
private field reflection of parent =?Utf-8?B?SmVzc2U=?= Microsoft Dot NET 0 19th Aug 2005 10:08 AM
How to recursively query a nested Assembly Item Table. =?Utf-8?B?V29vIE11biBGb29uZw==?= Microsoft Access Queries 1 17th Dec 2004 04:53 AM
Reflection. finding parent Mark Bosley Microsoft Dot NET Framework 4 24th Sep 2003 04:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:34 PM.