|
Bugzilla – Full Text Bug Listing |
| Summary: | GetProperty<T> on Binding does not work | ||
|---|---|---|---|
| Product: | [Mono] Mono: Class Libraries | Reporter: | Roy Cornelissen <roy_cornelissen> |
| Component: | WCF | Assignee: | Mono Bugs <mono-bugs> |
| Status: | NEW --- | QA Contact: | Mono Bugs <mono-bugs> |
| Severity: | Critical | ||
| Priority: | P5 - None | ||
| Version: | 2.10.x | ||
| Target Milestone: | --- | ||
| Hardware: | x86 | ||
| OS: | Apple iOS 4.3 | ||
| Whiteboard: | |||
| Found By: | Community User | Services Priority: | |
| Business Priority: | Blocker: | Yes | |
| Marketing QA Status: | --- | IT Deployment: | --- |
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: