[Mono-bugs] [Bug 683642] New: GetProperty<T> on Binding does not return the proper result

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 30 01:33:09 EDT 2011


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

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


           Summary: GetProperty<T> on Binding does not return the proper
                    result
    Classification: Mono
           Product: MonoDroid
           Version: SVN
          Platform: x86
        OS/Version: Windows 7
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: willemm at infosupport.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Customer
           Blocker: Yes


Description of Problem:

I've got a WCF proxy that uses a BasicHttpBinding that I want to enable cookies
for. When I set CookieContainer on the property it internally does a
GetProperty<IHttpCookieManager>() on the binding. This should return a cookie
manager, but it doesn't. After some research I found out that the binding does
contain the correct binding element (HttpCookieContainerBindingElement), but
the GetProperty<T> doesn't return the correct result despite the fact that the
stuff is there.

Steps to reproduce the problem:
1. Create a new WCF proxy for a basic webservice using slsvcutil
2. Create a new instance of the WCF proxy
3. Set the CookieContainere property


Actual Results:

Raises an exception "Unable to set the CookieContainer. Please make sure the
binding contains an HttpCookieContainerBindingElement."

Expected Results:

CookieContainer is set and sent to the server.

How often does this happen? 

Everytime I try to set the cookie container.

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