>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