Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2005

Tip: Looking for answers? Try searching our database.

getting parent assembly through reflection recursively - help requ

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Niranjan - 20 May 2005 14:50 GMT
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
Mattias Sjögren - 21 May 2005 13:27 GMT
>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

Signature

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

Niranjan - 23 May 2005 11:57 GMT
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

> >Can we get name of parent assembly in a called component recursively ?
> >i know Assembly.GetCallingAssembly() will return one level above. I need to
[quoted text clipped - 3 lines]
>
> Mattias
Niranjan - 24 May 2005 11:54 GMT
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

> >Can we get name of parent assembly in a called component recursively ?
> >i know Assembly.GetCallingAssembly() will return one level above. I need to
[quoted text clipped - 3 lines]
>
> Mattias

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.