Patrick Jox
9/22/2004 6:21:00 PM
Hello,
I am wondering if it makes sense to find a solution for the following task.
I know, that I can receive events from remote application and succeeded
already to follow some examples. But I need a very specific architecture and
would like to know, if this is generally possible:
I have an application that resides and runs on a server as a windows
service. To configure this service I have a Windows Forms application on a
client and now want to communicate with the remote application through a
TcpChannel. This works so far, but now I need to catch the events that are
fired by the remote application to display working progress and other
information of the remote process.
I have tested the event handling with a local instance of my business
object. It works fine.
On the server I have an app object which is inherited from
MarshalByRefObject which provides different classes / objects. One of this
classes the so called logger should raise an event whenever it writes some
information and there must be a possibiltiy for the client to listen to this
event and to display what's going on on the server. When my logger object is
not inherited from MarshalByRefObject, I can register my eventlistener, but
the events do never arrive to it.
When the logger class inherits MarshalByRefObject I get an error
(System.Security.SecurityException) when I try to register the listener.
Additional Information is "System.DelegateSerializationHolder and the
inherited classes can not be deserialized in this security level"
I have not found any example with this specific constellation. Can anybody
tell me if this can work, and possibly point me out some hints to get the
events catched.
Every hint would be mostly appreciated
Thanks a lot
Patrick