[Mono-list] Remoting problem

Dan Cimpoiesu dan.cimpoiesu@dion.ro
Wed, 11 Aug 2004 11:17:26 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0018_01C47F94.C829B380
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello there.

I have a client/server app that runs on Windows, and I must make the =
server to run on Linux as well.
I choosed the Mono for start.
The problem is that if I have a remoting object that contains the =
following method in the Remoting object

public Stream GetStream()=20
{
    outputStream=3D(Stream)File.OpenWrite("Test.zip"); //outputStream is =
a class member
    return outputStream;
}

and I get a reference of this object on a client ( with Activator object =
) and try to use the resulting Stream ( read/write or any other =
operation ), the client application hangs.

This happens only when I run the server on Linux with Mono. On windows =
it works ok.
Any suggestions?

Regards
Dan Cimpoiesu
------=_NextPart_000_0018_01C47F94.C829B380
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1458" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello there.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have a client/server app that runs on =
Windows,=20
and I must make the server to run on Linux as well.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I choosed the Mono for =
start.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The problem is that if I have a =
remoting object=20
that contains the following method in the Remoting object</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>public Stream GetStream() </DIV>
<DIV>{</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;=20
outputStream=3D(Stream)File.OpenWrite("Test.zip"); //outputStream is a =
class=20
member</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; return=20
outputStream;</FONT></DIV>
<DIV>}</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>and I get a reference of this object on =
a client=20
(&nbsp;with Activator object&nbsp;) and try to use the resulting Stream=20
(&nbsp;read/write or any other operation&nbsp;), the client application=20
hangs.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This happens only when I run the server =
on Linux=20
with Mono. On windows it works ok.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Any suggestions?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Dan =
Cimpoiesu</FONT></DIV></BODY></HTML>

------=_NextPart_000_0018_01C47F94.C829B380--