[Mono-bugs] [Bug 667429] New: Constructor mismatch between .NET/Mono (NetTcpSecurity)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jan 26 16:07:42 EST 2011


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

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


           Summary: Constructor mismatch between .NET/Mono
                    (NetTcpSecurity)
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: WCF
        AssignedTo: atsushi at ximian.com
        ReportedBy: bscheiman at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0E)

NET offers two constructors for NetTcpSecurity:

public NetTcpSecurity();
private NetTcpSecurity(SecurityMode mode, TcpTransportSecurity
transportSecurity, MessageSecurityOverTcp messageSecurity);

However, Mono 2.8.2 only offers this one:

internal NetTcpSecurity(SecurityMode mode);


When trying to debug/run app using Mono Tools, using the first will result in a
Missing method exception on the default constructor. Using the latter will not
build, due to the lack of NetTcpSecurity(SecurityMode) on .NET.

Not using NetTcpSecurity results in exceptions relating to
KerberosSecurityTokenParameters.


Reproducible: Always

Steps to Reproduce:
Create a WCF server using the following binding:

var netBinding = new NetTcpBinding {
                MaxReceivedMessageSize = 1024 * 1024 * 128,
                MaxBufferSize = 1024 * 1024 * 128,
                MaxBufferPoolSize = 1024 * 1024 * 128 * 10,
                ReaderQuotas = {
                    MaxStringContentLength = 1024 * 1024 * 128,
                    MaxArrayLength = 1024 * 1024 * 128,
                    MaxBytesPerRead = 1024 * 1024 * 128,
                },
                ReceiveTimeout = new TimeSpan(7, 0, 0),
                SendTimeout = new TimeSpan(7, 0, 0),
                Security = new NetTcpSecurity {
                    Mode = SecurityMode.None,
                    Message = new MessageSecurityOverTcp {
                        ClientCredentialType = MessageCredentialType.None
                    },
                    Transport = new TcpTransportSecurity {
                        ClientCredentialType = TcpClientCredentialType.None
                    }
                }
            };
Actual Results:  
Lots of exceptions

Expected Results:  
Running server.

-- 
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