Reputation: 59
Basically, I'm writing an android application and an iOS Phone/Tablet application using Xamarin and I want to have all common code out in a PCL library. All was going fine until I got the following exception:
System.InvalidOperationException: Unable to set the CookieContainer. Please make sure the binding contains an HttpCookieContainerBindingElement.
On trying to add this HttpCookieContainerBindingElement
to the binding, I discover that the class does not even exist. My PCL targets Xamarin.iOS, Xamarin.Android, .Net 4.5, and Silverlight 5.
This is a complete and total blocker for me now. Can any of you guys shed some light on this for me and show me a way forward?
Upvotes: 1
Views: 337
Reputation: 4625
I don't have a solution, but there's a long thread on this topic on the Xamarin forums: http://forums.xamarin.com/discussion/2369/cookiecontainer-missing-in-6-2-1
Upvotes: 1