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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top