tags:

views:

161

answers:

1
A: 

If the erros occurs after some time, it is possible that you doesn´t override the InitializeLifetimeService method of the base class MarshalByRefObject.

By default, if you doesn´t override the method, the remote object is destroyed after some time (I think 5 minutes). If you override the method and return null, the object has an endless life time.

public object InitializeLifetimeService(){
  return null;
}
Jehof