[Mono-bugs] [Bug 53031][Maj] New - Configuration of Remoting via .config file fails

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 18 Jan 2004 15:20:45 -0500 (EST)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by matt.davey@finetix.com.


--- shadow/53031	2004-01-18 15:20:45.000000000 -0500
+++ shadow/53031.tmp.565	2004-01-18 15:20:45.000000000 -0500
@@ -0,0 +1,89 @@
+Bug#: 53031
+Product: Mono/Class Libraries
+Version: unspecified
+OS Details: Linux - RedHat 9.0
+Status: NEW   
+Priority: Major
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: matt.davey@finetix.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Configuration of Remoting via .config file fails
+Description of Problem:
+RedHat 9.0 with Mono 0.29.99
+Use the config files below on Mono 0.29 appears to fail to configure 
+remoting, and expose an endpoint for a client to connect to:
+	<system.runtime.remoting>
+		<application>
+			<service>
+				<wellknown mode="Singleton" 
+objectUri="Test.rem" type="servicecomlib.HelloServer, servicecomlib" />
+			</service>
+			<channels>
+				<channel ref="tcp" port="8085"/>
+			</channels>
+		</application>
+	</system.runtime.remoting>
+Server Code in C# use the above .cofig file
+Client code to connect to endpoint
+string svr = "tcp://"+ args[0] + ":8085/Test.rem";
+IServerObject s = Activator.GetObject(typeof(IServerObject),svr) as 
+However, if a config file is not used server side, and explicit C# calls 
+are made to configure the server remoting endpoints:
+ChannelServices.RegisterChannel(new TcpChannel(8085));
+(servicecomlib.HelloServer),"Test.rem", WellKnownObjectMode.Singleton);
+Then the above client code connects ok
+Steps to reproduce the problem:
+1. Put the above XML in a config files
+2. Execute this line to load the config files and configure the remoting 
+3. Try connecting a client to the endpoint
+Actual Results:
+Any client trying to connect to a remoting server using the above config 
+file get a remoting exception "Cannot create channel sink to connect 
+to ..."
+Expected Results:
+Should configure remoting correctly and allow clients to connect to the 
+exposed endpoint
+How often does this happen? 
+Additional Information: