I'm not sure how much code you need to see to handle this problem.
I am trying to add the ability for any logged-on client to send a message to all other logged-on clients.
My server code looks like this:
public OedipusServer<br />{<br />
I have another project, Messaging, which looks like this:
public delegate void StatusChangedEventHandler(int userID, int newStatus);<br />public abstract class AbstractServer : MarshalByRefObject<br />{<br /> public abstract void myStatusHasChanged(int userID, int newStatus);<br /> public abstract event StatusChangedEventHandler myStatusChangedEvent;<br />}<br />public abstract class AbstractBroadcastedMessageEventSink : MarshalByRefObject<br />{<br /> public void callbackStatusChanged(int userID, int newStatus)<br /> {<br /> internalCallbackStatusChanged(userID, newStatus);<br /> }<br /> protected abstract void internalCallbackStatusChanged(int userID, int newStatus);<br />}<br />
On the client side I have:
class EventSink : AbstractBroadcastedMessageEventSink<br />{<br /> protected override void internalCallbackStatusChanged(int userID, int newStatus)<br /> {<br />
It's subscribing to the event which raises the runtime error "DelegateSerializationHolder is not permitted to be deserialized at this security level".