Remoting Problems...
-
I am trying to call a delegate from a wellknown object, that has had a method added via the remoting client and recieved the following error: System.Runtime.Remoting.RemotingException: This remoting proxy has no channel sink which means either the server has no registered server channels that are listening, or this application has no suitable client channel to talk to the server. I only get this error if try to use a delegate for client callback from the wellknown object. If I strip out the delegate and event call from the wellknown object and remove the event handler from the client side... 1 way communication from client(s) to server works fine. NOTE: I have also added a binary formatter with typeFilterLevel="Full" to the channel configuration, and made the client object serializable. So my question is... How do I make the server object notify its clients that one of them has sent a message to the server, and what the contents of the message is? (message is a simple string at this point) Could someone point me in the right direction please... A word or two as to how i might accomplish this task...
-
I am trying to call a delegate from a wellknown object, that has had a method added via the remoting client and recieved the following error: System.Runtime.Remoting.RemotingException: This remoting proxy has no channel sink which means either the server has no registered server channels that are listening, or this application has no suitable client channel to talk to the server. I only get this error if try to use a delegate for client callback from the wellknown object. If I strip out the delegate and event call from the wellknown object and remove the event handler from the client side... 1 way communication from client(s) to server works fine. NOTE: I have also added a binary formatter with typeFilterLevel="Full" to the channel configuration, and made the client object serializable. So my question is... How do I make the server object notify its clients that one of them has sent a message to the server, and what the contents of the message is? (message is a simple string at this point) Could someone point me in the right direction please... A word or two as to how i might accomplish this task...
Take a look at this article http://www.codeproject.com/csharp/RemotingAndEvents.asp Free your mind...
-
Take a look at this article http://www.codeproject.com/csharp/RemotingAndEvents.asp Free your mind...
:-D Thanks... I have since decided i was barking up the wrong tree :doh:, trying to use remoting for this task. It was really easy to do what i wanted with the System.Net stuff... I could not believe how easy it was... Ofcourse had it not been for code project it would have taken me a lot longer to figure this out... [Great article] http://www.codeproject.com/csharp/socketsincs.asp?target=AsyncCallback When all else fails... Read the instructions...