Cannot create ArcGIS Portal against IWA-enabled endpoint on Android in 100.9?

1149
4
Jump to solution
10-26-2020 06:05 PM
JonathanRuland
New Contributor II

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.

0 Kudos
1 Solution

Accepted Solutions
JonathanRuland
New Contributor II

we managed to fix this problem by setting PreAuthenticateBehavior to Disabled whenever we instantiate an ArcGISNetworkCredential.

View solution in original post

0 Kudos
4 Replies
JonathanRuland
New Contributor II

we managed to fix this problem by setting PreAuthenticateBehavior to Disabled whenever we instantiate an ArcGISNetworkCredential.

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

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  

EricBader2
New Contributor III

Is this new at 100.9?

0 Kudos
StephM
by
New Contributor II

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.

0 Kudos