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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=81554 --- shadow/81554 2007-05-07 15:08:51.000000000 -0400 +++ shadow/81554.tmp.2670 2007-05-07 15:08:51.000000000 -0400 @@ -0,0 +1,90 @@ +Bug#: 81554 +Product: Mono: Runtime +Version: 1.0 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Wishlist +Component: remoting +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Wrong Method Called via Remoting with Explicit Interface Implementation + +Please fill in this template when reporting a bug, unless you know what you +are doing. +Description of Problem: +When calling a remote method that is on an explicitly implemented interface +in the presence of another method of the same name, an InvalidCastException +is thrown. + +Steps to reproduce the problem: +1. Run attached sample +2. +3. + +Actual Results: +System.InvalidCastException: Return argument has an invalid type. + + at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object +arg, Ty + +pe paramType) + + at System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage + +msg, Object[] outArgs, Object returnValue) + + at +System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage req + +Msg, IMessage retMsg) + + at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& +msgDa + +ta, Int32 type) + + at Common.ISayHello.SayHello() + + at ConsoleApplication1.Program.Main(String[] args) in C:\Documents and +Settin + +gs\tmilntho\My Documents\Visual Studio +2005\Projects\ConsoleApplication1\Console + +Application1\Program.cs:line 24 + + +Expected Results: +Console output of: Hello + +How often does this happen? +Everytime + +Additional Information: +Also, note that if I change the method of the same name as the explicitly +implemented method + +public byte[] SayHello() + +to + +public byte[] SayHelloABC() + +I still get an InvalidCastException, although with a different stack trace: + +System.InvalidCastException: Return value has an invalid type + at System.Runtime.Remoting.Proxies.RealProxy.ProcessResponse +(IMethodReturnMes +sage mrm, System.Runtime.Remoting.Messaging.MonoMethodMessage call) [0x00000] + at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke +(System.Runtime.Rem +oting.Proxies.RealProxy rp, IMessage msg, System.Exception& exc, +System.Object[] +& out_args) [0x00000] _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
