Home All Groups Group Topic Archive Search About

shared object in GAC across processes

Author
29 Sep 2006 3:19 AM
Amil Hanish
Is it possible, using static properties, to have a shared object in the GAC
that can be accessed by differnet processes?  If so, how?  If not, how can I
have a shared .NET object that can used by different processes?

Thanks.

Amil

Author
29 Sep 2006 5:07 AM
Dave Sexton
Hi Amil,

The GAC does not host objects or running processes.  The GAC is simply a repository for registered assemblies on the system.

Global Assembly Cache (GAC) on MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconglobalassemblycache.asp

To have a static property that is available to multiple processes you'll have to create an .exe to host the property.  To access the
property from other processes you can use Remoting.

..NET Framework Remoting Overview on MSDN:
http://msdn2.microsoft.com/en-us/library/kwdt6w2k.aspx

You might prefer a Windows Service over the standard Windows executable for several reasons that you can read about here on MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vboricreatingconfiguringwindowsserviceapplications.asp

--
Dave Sexton

Show quote
"Amil Hanish" <amilhan***@hotmail.com> wrote in message news:O3KpgY34GHA.1196@TK2MSFTNGP02.phx.gbl...
> Is it possible, using static properties, to have a shared object in the GAC that can be accessed by differnet processes?  If so,
> how?  If not, how can I have a shared .NET object that can used by different processes?
>
> Thanks.
>
> Amil
>

AddThis Social Bookmark Button