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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to