We recently upgraded to ArcGISRuntime 100.9 (we were using 100.8 before) and now our Android application can no longer connect to an IWA-enabled endpoint. The code is simple:
Portal = await ArcGISPortal.CreateAsync(new Uri(_serviceUri));
This worked in 100.8 but now it throws the following exception:
System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized).
Do you have any insight into what changes we need to make to get this to work again? Or perhaps point us in the direction of what may have changed to cause this to no longer work?
Thanks.
Solved! Go to Solution.
we managed to fix this problem by setting PreAuthenticateBehavior to Disabled whenever we instantiate an ArcGISNetworkCredential.
we managed to fix this problem by setting PreAuthenticateBehavior to Disabled whenever we instantiate an ArcGISNetworkCredential.
Hi,
Thanks for the update - we'll investigate to determine if there were any changes in ArcGIS Runtime that could have affected this.
Thanks
Mike
Is this new at 100.9?
Hello Jonathan,
I'm now facing the same issue than you... But I'm in 100.15.
The solution above didn't work for me.
Do you managed to make it working like that or do you changes something else ?
Thanks for your time.