Testing .NET Remoting

.NET Explorer supports both Client Activated Objects (CAO), which are remote objects in which clients create new instances of objects on remoting servers, and Server Activated Objects (SAO), or WellKnown remote objects, in which a server offers one instance of a special type (class) and clients access the same object on the remoting server.

Both CAOs and SAOs are accessed through URLs. For CAOs, the Activation URL is the URL where a new CAO can be created, for example http://localhost. For SAOs, the URL is the location where the SAO object can be accessed, for example http://localhost/RemoteObject.rem.

CAO classes can only be derived from the base class MarshalByRefObject. SAOs can be derived from MarshalByRefObject or by implementing an interface.

To create a CAO or activated object, right-click a MarshalByRef object and select Create Remote Object. You will be prompted for the Activation URL and for the variable name that will be associated with the created object.

To call methods on a SAO or WellKnown object, simply call the method. You will then be prompted for the Activation URL.

For full details regarding .NET Remoting, refer to the MSDN Online Library at http://msdn.microsoft.com.