[Mono-bugs] [Bug 76295][Wis] New - Remoting of explicit interface implementation fails

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Sep 30 11:11:34 EDT 2005


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 csaba.halasz at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=76295

--- shadow/76295	2005-09-30 11:11:34.000000000 -0400
+++ shadow/76295.tmp.30897	2005-09-30 11:11:34.000000000 -0400
@@ -0,0 +1,78 @@
+Bug#: 76295
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: Csaba.Halasz at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Remoting of explicit interface implementation fails
+
+Description of Problem:
+Remoting of explicit interface implementation fails
+
+Steps to reproduce the problem:
+using System;
+using System.Runtime.Remoting;
+using System.Runtime.Remoting.Channels;
+using System.Runtime.Remoting.Channels.Http;
+using System.Runtime.Remoting.Channels.Tcp;
+
+public interface TestIf
+{
+    int One();
+}
+
+class MainClass : MarshalByRefObject, TestIf
+{
+    int TestIf.One()
+    {
+        return 1;
+    }
+
+    static void Main(string[] args)
+    {
+        ChannelServices.RegisterChannel(new HttpChannel(1234));
+        RemotingServices.Marshal(new MainClass(), "TestUri", typeof(TestIf));
+
+        TestIf o = RemotingServices.Connect(typeof(TestIf),
+"http://localhost:1234/TestUri") as TestIf;
+        Console.WriteLine(o.One());
+    }
+}
+
+Actual Results:
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+
+Server stack trace:
+in <0x00000> <unknown method>
+in (wrapper managed-to-native)
+System.Runtime.Remoting.RemotingServices:InternalExecute
+(System.Reflection.MethodBase,object,object[],object[]&)
+in <0x00188>
+System.Runtime.Remoting.RemotingServices:InternalExecuteMessage
+(System.MarshalByRefObject target, IMethodCallMessage reqMsg)
+
+Exception rethrown at [0]:
+
+in <0x006dc> System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke
+(System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg,
+System.Exception exc, System.Object[] out_args)
+
+Expected Results:
+1
+
+How often does this happen? 
+Always.
+
+Additional Information:
+Tested with 1.1.9 20050927


More information about the mono-bugs mailing list