What version of MonoDroid are you using? That same snippet of code works
just fine on my phone. I'm using the beta version 1.9.2

Mike Child


On Tue, Nov 15, 2011 at 11:12 PM, Stuart Lodge <[email protected]> wrote:

> Hi
>
> I'm finding that I get an exception when I try to download content from
> any HTTPs address.
>
> Basic code I'm trying is:
>
>         var wc = new WebClient ();
>         var test1 = wc.DownloadString("http://www.google.com";);
>         var test2 = wc.DownloadString("https://www.google.com";)
>
> http succeeds, https fails with: {System.Net.WebException: Error getting
> response stream (Write: EndWrite failure): SendFailure --->
> System.IO.IOException: EndWrite failure --->
> System.Net.Sockets.SocketException: The socket has been shut down at
> System.Net.Sockets.Socket.EndSend (IAsyncResult result) [0x0002d] in
> /home/jon/Development/xamarin/mono/mcs/class/System/System.Net.Sockets/Socket_2_1.cs:1989
>
> Details are also on
> http://stackoverflow.com/questions/8124854/i-cant-download-from-https-on-monodroid-am-i-missing-something-obvious
>
> Is there anything I can do to get this working (e.g. some compilation or
> manifest setting)?
>
> Thanks
>
> Stuart
>
> _______________________________________________
> Monodroid mailing list
> [email protected]
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
>
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to