[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.
http://bugzilla.ximian.com/show_bug.cgi?id=53031
--- 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:
+OS Details: Linux - RedHat 9.0
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: matt.davey@finetix.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+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:
+
+<configuration>
+ <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>
+</configuration>
+
+Server Code in C# use the above .cofig file
+
+RemotingConfiguration.Configure("servercomlib.exe.config");
+
+Client code to connect to endpoint
+
+string svr = "tcp://"+ args[0] + ":8085/Test.rem";
+IServerObject s = Activator.GetObject(typeof(IServerObject),svr) as
+IServerObject;
+
+
+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));
+RemotingConfiguration.RegisterWellKnownServiceType(typeof
+(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
+server
+
+RemotingConfiguration.Configure("servercomlib.exe.config");
+
+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:
+
+Executing
+
+RemotingConfiguration.Configure("servercomlib.exe.config");
+
+Should configure remoting correctly and allow clients to connect to the
+exposed endpoint
+
+
+How often does this happen?
+
+always
+
+Additional Information: