[Mono-bugs] [Bug 668089] New: Runtime exceptions trying to use WCF callbacks with MONO

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jan 28 16:52:37 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=668089

https://bugzilla.novell.com/show_bug.cgi?id=668089#c0


           Summary: Runtime exceptions trying to use WCF callbacks with
                    MONO
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: WCF
        AssignedTo: atsushi at ximian.com
        ReportedBy: fabien.gigante at free.fr
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=411089)
 --> (http://bugzilla.novell.com/attachment.cgi?id=411089)
Source code (various attempts)

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0; GTB6.6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; .NET4.0C;
NET4.0E)

I'm using WCF callbacks with netTcpBinding. My program is working fine with
native .NET but Mono always gives runtime exceptions. I made several attempts.
Workaround are also welcomed (before a fix is found).

I used Mono 2.8.2 on Windows. (But I believe the issue exists on all OS).

Three programs (source code) attached A/ Initial problem (Program.Original.cs)
B/ Simplified problem, as an attempt to work around issue A
(Program.Simplified.cs) and C/ Removing callbacks entirely
(Program.NoCallback.cs) just to make sure the issue was with callbacks.

Reproducible: Always

Steps to Reproduce:
A/ Initial problem
1. Compile Program.Original.cs (+ app.config)
2. Run

B/ Simplified problem (as an attempt to work around issue A)
1. Compile Program.Simplified.cs (+ app.config)
2. Run
Actual Results:  
A/ Initial problem
Following exception can be seen

Unhandled Exception: System.InvalidOperationException: A contract cannot have
tw
o operations that have the identical names and different set of parameters.
  at
System.ServiceModel.Description.ContractDescriptionGenerator.GetOrCreateOpe
ration (System.ServiceModel.Description.ContractDescription cd,
System.Reflectio
n.MethodInfo mi, System.Reflection.MethodInfo serviceMethod,
System.ServiceModel
OperationContractAttribute oca, System.Type asyncReturnType, Boolean
isCallback
) [0x00000] in <filename unknown>:0


B/ Simplified problem
Following exception can be seen

System.ServiceModel.EndpointNotFoundException: The request message has the
targe
t '' with action 'http://tempuri.org/IService/JoinResponse' which is not
reachab
le in this service contract
  at System.ServiceModel.MonoInternal.DuplexClientRuntimeChannel.ProcessInput
(I
InputChannel input, System.ServiceModel.Channels.Message message) [0x00000] in
<
filename unknown>:0

Expected Results:  
Expected console output :

Server hears Hello
Client callback hears Hello
Client callback hears Hello

When removing callbacks entirely (Program.NoCallback.cs), it working. (Showing
that the problem is very likely due to the usage of callbacks)

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list