Bug 15012 - [Release mode] "AsyncImageAndroid" android sample throws 'System.Net.WebException' on clicking Download button.
Summary: [Release mode] "AsyncImageAndroid" android sample throws 'System.Net.WebExcep...
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Samples ()
Version: 4.8.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Peter Collins
URL:
Depends on:
Blocks:
 
Reported: 2013-09-26 08:54 UTC by Akhilesh kumar
Modified: 2013-09-27 13:57 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Akhilesh kumar 2013-09-26 08:54:47 UTC
Steps to reproduce:
1. Open AsyncImageAndroid android sample in XS
2. Run the application on Release mode(Default Release mode)
3. Observe that application deploys successfully on device/emulator
4. Click on "Download" button

Actual result:
On clicking on clicking Download button it throws 'System.Net.WebException'. However, on DEBUG mode application is working fine and on clicking Download button it starts downloading.

Expected result:
On clicking Download button it starts downloading on RELEASE mode also.

Application output: https://gist.github.com/AkhileshKumar01/657605f33062c0d15617

Environment info:
Mac OSX 10.9 and OSX 10.8.4
XS 4.0.13 (build 39) 
X.Android 4.8.3-3
Mono 3.2.3 ((no/8d3b4b7)

Device info:
LG Nexus 4 (Version 4.3)
Emulator(API 10)

App info:
monodroid-samples-master-1e10e2cf956940cbaa0dcafd9b95d7ac97a58c2e
Comment 1 Akhilesh kumar 2013-09-26 11:39:37 UTC
An update to above issue:

Regression status: This issue also  exists with stable environments:

XS- 4.0.12(build 3) 
Mono -3.2.3 ((no/8d3b4b7)
mono-android-4.8.1-13-1
Comment 2 Akhilesh kumar 2013-09-26 12:57:36 UTC
I am getting same issue on both Debug and Release mode with fresh "x86 emulator of API 10" with following configuration:

1) Link All | No Shared Runtime | No Fast Deploy
2) Don't Link | No Shared Runtime | No Fast Deploy
3) Link Sdk Only | No Shared Runtime | No Fast Deploy (Default RELEASE)
4) Default debug mode
Comment 3 Peter Collins 2013-09-26 15:32:39 UTC
I've added internet permission to this sample to fix the issue on release configurations in master/12fe747

Akhilesh are you sure the emulator you are deploying to as internet access? I saw the same exception on my x86 emulator and realized it was due to a lack of internet connection.
Comment 4 Akhilesh kumar 2013-09-27 12:29:17 UTC
Now, application does not throw exception on release mode on device/emulator having internet connection.

On x86 and normal emulator of API 18 having internet connection, application is working fine and Download works well.

However, I am still getting same issue on the x86 and normal emulator of API 10 due to a lack of internet connection and I am unable to enable internet on API 10 emulator.
Comment 5 Akhilesh kumar 2013-09-27 13:57:42 UTC
I have tried to enable internet on API 10 emulator but doesn't get success. Please guide us how to enable internet on API 10 emulator. 

Thanks