[Mono-bugs] [Bug 683640] New: GetProperty<T> on Binding does not work

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 30 01:32:25 EDT 2011


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

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


           Summary: GetProperty<T> on Binding does not work
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: x86
        OS/Version: Apple iOS 4.3
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: WCF
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: roy_cornelissen at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User
           Blocker: Yes


Description of Problem:
Found this problem when trying to use WCF proxy generated by SLSvcUtil.exe for
a WCF service. When I try to set the CookieContainer, the program fails saying
"Unable to set the CookieContainer. Please make sure the binding contains an
HttpCookieContainerBindingElement.", even though EnableCookieContainer is set
on the binding.

This is due to the fact that GetProperty<T> returns null when evaluating the
binding.

Steps to reproduce the problem:
1. Generate a WCF proxy for a WCF service (I did so with SLSvcUtil.exe on a
Windows machine, then used the code in a MonoTouch project)
2. In code:

BasicHttpBinding binding = new BasicHttpBinding();
EndpointAddress address = new EndpointAddress("....");
binding.EnableHttpCookieContainer = true;

var client = new MyProxyClass(binding, address);
client.CookieContainer = _someCookieContainer; // <-- this line fails at
runtime


Actual Results:
Exception "Unable to set the CookieContainer. Please make sure the binding
contains an HttpCookieContainerBindingElement."

Expected Results:
CookieContainer can be set and will be used by the binding.

How often does this happen? 
Always when running this code.

Additional Information:

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


More information about the mono-bugs mailing list