[Mono-bugs] [Bug 77191][Nor] Changed - [PATCH] Mono remoting runtime can not resolve overload method during remote request method call processing.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Feb 2 06:16:35 EST 2007
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 informatique.internet at fiducial.fr.
http://bugzilla.ximian.com/show_bug.cgi?id=77191
--- shadow/77191 2007-02-02 06:14:47.000000000 -0500
+++ shadow/77191.tmp.29479 2007-02-02 06:16:35.000000000 -0500
@@ -358,6 +358,72 @@
------- Additional Comments From informatique.internet at fiducial.fr 2007-02-02 06:14 -------
Created an attachment (id=18610)
More Simple TestCase (monodevelop solution) (.tar.gz)
+
+------- Additional Comments From informatique.internet at fiducial.fr 2007-02-02 06:16 -------
+Client :
+
+using System;
+
+namespace MonoTestInterface.Client
+{
+ public interface ITestMono
+ {
+ string montest();
+ }
+}
+
+Server
+
+using System;
+using MonoTestInterface.Client;
+
+namespace MonoTestInterface
+{
+ public class CMonoTest:MarshalByRefObject,ITestMono
+ {
+ public string montest()
+ {
+ return "blah";
+ }
+
+
+
+ public int montest(string a)
+ {
+ return 1;
+ }
+
+ }
+}
+
+Test :
+
+
+using System;
+using System.Runtime.Remoting.Channels;
+using System.Runtime.Remoting.Channels.Tcp;
+using MonoTestInterface.Client;
+
+
+namespace TestClient
+{
+ class MainClass
+ {
+ public static void Main(string[] args)
+ {
+ Console.WriteLine("Hello World!");
+ ChannelServices.RegisterChannel(new TcpChannel());
+ ITestMono test=(ITestMono )Activator.GetObject(typeof (ITestMono
+),"tcp://10.69.100.164:4570/MonoTest");
+ Console.WriteLine(test.montest());
+ }
+ }
+}
+
+Result :
+Unhandled Exception: System.Reflection.AmbiguousMatchException:
+Ambiguous matching in method resolution
+
More information about the mono-bugs
mailing list