Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is it possible to share instance and data from a GAC assembly

2 views
Skip to first unread message

Chris

unread,
Dec 14, 2009, 12:46:01 AM12/14/09
to
Hi,

I have two CSharp executables (appA.exe and appB.exe). appB is loaded and
executed in a second AppDomain inside appA. Both appA and appB share the same
GAC assembly (assC.dll). I also want appA and appB to share the same data
instance from the assemly. So far, I implemeted two AppDomains and registered
the assembly into GAC. However, appA and appB always got two different copies
of data from the assembly. Could anyone tell me if it is possible to share
the same data instance from a GAC assembly like the way that a C++ COM
component is shared by apps.

Thank you
Chris

Robert Haken [MVP]

unread,
Mar 8, 2010, 5:59:50 PM3/8/10
to
No, it is not (the way you want it).
You have to write some inter-process communication (.NET remoting,
WebServices, etc.) or use some shared data-store (typically database).

Robert Haken [MVP ASP.NET, MCPD, MCT]
HAVIT, s.r.o. [http://knowledge-base.havit.cz]

"Chris" <Ch...@discussions.microsoft.com> píše v diskusním příspěvku
news:BEC95B14-A7BD-4C0E...@microsoft.com...

0 new messages