Closed rclancy closed 7 years ago
I can’t reproduce your problem. Screenshot is attached.
Charles
From: rclancy [mailto:notifications@github.com] Sent: Wednesday, October 12, 2016 2:25 AM To: xamarin/xamarin-forms-book-samples xamarin-forms-book-samples@noreply.github.com Subject: [xamarin/xamarin-forms-book-samples] Chapter 13 - WebBitmap is blank (#13)
Both the code and XAML versions of WebBitmap produce a blank screen on my Android emulator (VS2015, Hyper-V, Windows10). The url shows an image if I navigate to it in a browser. Is this a security issue?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fxamarin%2Fxamarin-forms-book-samples%2Fissues%2F13&data=01%7C01%7Cchape%40microsoft.com%7C267244c5fb684a155f4308d3f2687131%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=Su1NgdUgTks7Iv7x0EHQA1ziuhUgPr2p2u8cqaDunxE%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGV_iS1bAs3bfGOsxRrVzh6CZ-4iFvF7ks5qzH0kgaJpZM4KUaGj&data=01%7C01%7Cchape%40microsoft.com%7C267244c5fb684a155f4308d3f2687131%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=3MyPkCwTM%2Ba8EVurmBWrgjKIOI%2Fnq7WaouEhlCV4eKA%3D&reserved=0.
It was a firewall IPS filter on my SonicWall router. IPS had been enabled for years without issue, but the Hyper-V emulator requests were blocked by it. I turned off the feature on the firewall and all is now working. Interestingly, the IPS setting was available on several zones on the router, and enabled on WAN and LAN. When I disabled it on WAN, half of your samples which had the problem suddenly worked (ImageBrowser for example), but it wasn’t till I disabled it on LAN that the other half started returning images (WebBitmap for example). The problem did teach me about the emulator’s MAC address and IP leases, which was useful
Both the code and XAML versions of WebBitmap produce a blank screen on my Android emulator (VS2015, Hyper-V, 5" KitKat Emulator, Windows10). The same Universal Windows and Windows 8.1 projects do show an image. It is only the Android emulator that has the problem, though I haven't tried iOS or Windows Phone. The url also shows an image if I navigate to it in a browser. Is this a security issue? Could it be a firewall issue? This is the image: http://developer.xamarin.com/demo/IMG_1415.JPG
The ImageBrowser Android project fails also, probably for the same reason. No images. Similarly the BitmapStreams project displays the resource stream but not the WebRequest stream.
Same with Chapter 16 WebViewDemo. It works perfectly on UWP or Windows but displays nothing on the Android emulator running in Hyper-V.
This is a Hyper-V emulator IP / router problem. The Android emulator does not have a valid IP address. I'm working with a router technician now... This can be closed. (The problem was IPS detection. When I turned it off, everything worked)