Events in .Net Remoting



Hi,

I have read most of the mails that have been passed on this group about
handling events in a remoting app, however my question seems to be
different from them. Here's my question...

I have a client-server application setup, which is working fine when
the client needs some functionality from a remotable object available
at the remote machine, and the server helps in getting the
functionality.

However, when I try to send an event (which I did based on this
article: http://www.developer.com/net/cplus/article.php/3339611), I get
an exception on the server side which says:

System.Net.Sockets.SocketException: A connection attempt failed because
the connected party did not properly System respond after a period of
time, or established connection failed because connected host has
failed to respond

It seems as if the client application has died or something...however,
the regular client side requests still work fine.


Can anyone please help me here?

Thanks and Best regards,
Vishal



Here's the Server Stack Trace
Server stack trace:
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at
System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()
at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String
machineAndPort)
at
System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage
msg, ITransportHeaders requestHeaders, Stream requestStream)

at
System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage
msg, ITransportHeaders requestHeaders, Stream requestStream,
ITransportHeaders& responseHeaders, Stream& responseStream)

at
System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage
msg) Exception rethrown at [0]:
at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
at Greeting.RemoteHandlerBase.Alert(String s)
at RemoteAlert.Invoke(String str)
at Greeting.Greeter.raise_RemoteAlertEvent(String i1)
at Greeting.Greeter.Alert(String s)
at GreetingServer.Server.Alert_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)

.


Loading