[Mono-devel-list] System.Runtime.Remoting.RemotingException: Underlying socket was closed.

Aleksandar Dezelin dezelin32 at fastmail.fm
Tue Nov 9 13:34:02 EST 2004


Hi,

I am porting an existing application to Linux and Mono. It is a three 
tier application using remoting. Our middle tier should run on Mono and 
we use .NET as a platform for executing client part. Our work is almost 
done but I get this unhandled exception message when I try to log on to 
the middle tier:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.Remoting.RemotingException: Underlying socket was closed.

Server stack trace:
   at 
System.Runtime.Remoting.Channels.SocketHandler.ReadFromSocket(Byte[] 
buffer, Int32 offset, Int32 count)
   at System.Runtime.Remoting.Channels.SocketHandler.BufferMoreData()
   at System.Runtime.Remoting.Channels.SocketHandler.Read(Byte[] buffer, 
Int32 offset, Int32 count)
   at 
System.Runtime.Remoting.Channels.SocketHandler.ReadAndMatchFourBytes(Byte[] 
buffer)
   at 
System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadVersionAndOperation(UInt16& 
operation)
   at 
System.Runtime.Remoting.Channels.Tcp.TcpClientSocketHandler.ReadHeaders()
   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 
Informatika.Infos.Foundation.SupportCoordinator.SupportExecuteEdit.GetExecuteSubtype(Guid 
idActInProc) in C:\Documents and Settings\Administrator\My 
Documents\Visual Studio Projects\LinuxPort 
-fork\SurrogateWebServices\Foundation\SupportCoordinator\SupportExecuteEdit.cs:line 
50
   at 
Informatika.Infos.Foundation.Coordinator.SupportExecuteEdit.GetExecuteSubtype(Guid 
idActInProc) in C:\Documents and Settings\Administrator\My 
Documents\Visual Studio Projects\LinuxPort 
-fork\Proxies\Foundation\Coordinator\SupportExecuteEditProxy.cs:line 43
   at 
Informatika.Infos.Foundation.Coordinator.SelectionExecuteEditImpl.SelectionExecuteEditImpl.GetExecuteSubtype(SelectionExecuteState 
selExeState) in C:\Documents and Settings\Administrator\My 
Documents\Visual Studio Projects\LinuxPort 
-fork\JugodrvoClient\Foundation\BusinessObjEdit\BOCoordinator\BOCoordinatorImpl\SelectionExecuteEditImpl.cs:line 
277
   at 
Informatika.Infos.Foundation.Coordinator.LocalSelectionExecuteEdit.GetExecuteSubtype() 
in C:\Documents and Settings\Administrator\My Documents\Visual Studio 
Projects\LinuxPort 
-fork\JugodrvoClient\Foundation\BusinessObjEdit\BOCoordinator\LocalSelectionExecuteEdit.cs:line 
49
   at 
Informatika.Infos.Foundation.WinClient.LocalSelectionExecuteClient.LaunchExecute(Object 
sender, EventArgs e) in C:\Documents and Settings\Administrator\My 
Documents\Visual Studio Projects\LinuxPort 
-fork\JugodrvoClient\Foundation\BusinessObjClient\LocalSelectionExecuteClient.cs:line 
580
   at 
Informatika.Infos.Foundation.WinClient.LocalSelectionExecuteClient.execute_Click(Object 
sender, EventArgs e) in C:\Documents and Settings\Administrator\My 
Documents\Visual Studio Projects\LinuxPort 
-fork\JugodrvoClient\Foundation\BusinessObjClient\LocalSelectionExecuteClient.cs:line 
864
   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)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: 
file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
JugodrvoClient
    Assembly Version: 1.0.1774.34526
    Win32 Version: 1.0.1774.34526
    CodeBase: 
file:///C:/Documents%20and%20Settings/Administrator/My%20Documents/Visual%20Studio%20Projects/LinuxPort%20-fork/JugodrvoClient/bin/Debug/JugodrvoClient.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: 
file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: 
file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: 
file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
Proxies
    Assembly Version: 1.0.1774.34510
    Win32 Version: 1.0.1774.34510
    CodeBase: 
file:///C:/Documents%20and%20Settings/Administrator/My%20Documents/Visual%20Studio%20Projects/LinuxPort%20-fork/JugodrvoClient/bin/Debug/Proxies.DLL
----------------------------------------
SurogateWebServices
    Assembly Version: 1.0.1774.34506
    Win32 Version: 1.0.1774.34506
    CodeBase: 
file:///C:/Documents%20and%20Settings/Administrator/My%20Documents/Visual%20Studio%20Projects/LinuxPort%20-fork/JugodrvoClient/bin/Debug/SurogateWebServices.DLL
----------------------------------------
PassiveTypes
    Assembly Version: 1.0.1774.34460
    Win32 Version: 1.0.1774.34460
    CodeBase: 
file:///C:/Documents%20and%20Settings/Administrator/My%20Documents/Visual%20Studio%20Projects/LinuxPort%20-fork/JugodrvoClient/bin/Debug/PassiveTypes.DLL
----------------------------------------
System.Xml
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: 
file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: 
file:///c:/windows/assembly/gac/system.runtime.remoting/1.0.5000.0__b77a5c561934e089/system.runtime.remoting.dll
----------------------------------------
Accessibility
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: 
file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.


What's wrong?

Regards,
Aleksandar Dezelin

-- 
Linux is like wigwam - no windows, no gates and apache inside. ... 




More information about the Mono-devel-list mailing list