NullReferenceException when loading a layer that uses integrated Windows authentication

139
0
10-18-2018 02:24 PM
Highlighted
New Contributor

Hi,

I'm trying to load a webmap that contains a feature layer that is Windows Auth-secured. The endpoint is HTTPS and contains a valid certificate. When I try to load the webmap on an iOS device, I get the following exception message on the layer, with the status set as FailedToLoad.

Object reference not set to an instance of an object System.NullReferenceException: Object reference not set to an instance of an object
at Esri.ArcGISRuntime.Internal.RequestRequiredHandler+<IssueRequestAndRespond>d__14.MoveNext () <0x102692110 + 0x01720> in <d88722dca7b54d58a8ec8b2dc00b6777#c5682ce7f485f66f00bf5a7103269dde>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x100b7cc30 + 0x00028> in <d680a8bf3a2a4c8dbbfde665ba81f6f2#c5682ce7f485f66f00bf5a7103269dde>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x100b7fff0 + 0x000d3> in <d680a8bf3a2a4c8dbbfde665ba81f6f2#c5682ce7f485f66f00bf5a7103269dde>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x100b7ff40 + 0x0008b> in <d680a8bf3a2a4c8dbbfde665ba81f6f2#c5682ce7f485f66f00bf5a7103269dde>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x100b7fed0 + 0x00053> in <d680a8bf3a2a4c8dbbfde665ba81f6f2#c5682ce7f485f66f00bf5a7103269dde>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () <0x100b7fea0 + 0x00017> in <d680a8bf3a2a4c8dbbfde665ba81f6f2#c5682ce7f485f66f00bf5a7103269dde>:0

The curious part of this is that it only occurs when I build in release mode. When I'm debugging, everything works fine and the layer prompts the ICredentialHandler for credentials. Note that I am building this in Xamarin Forms, and the same functionality works fine for Windows and Android.

Any help would be much appreciated!

Tags (1)
Reply
0 Kudos
0 Replies