shared object in GAC across processes

  • Thread starter Thread starter Amil Hanish
  • Start date Start date
A

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
 
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/d...-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/d...tingconfiguringwindowsserviceapplications.asp
 
Back
Top