<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic NullReferenceException when loading a layer that uses integrated Windows authentication in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/nullreferenceexception-when-loading-a-layer-that/m-p/606609#M7458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to load a webmap that contains a feature layer&amp;nbsp;that is Windows Auth-secured.&amp;nbsp;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 &lt;EM&gt;FailedToLoad&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Object reference not set to an instance of an object System.NullReferenceException: Object reference not set to an instance of an object&lt;BR /&gt; at Esri.ArcGISRuntime.Internal.RequestRequiredHandler+&amp;lt;IssueRequestAndRespond&amp;gt;d__14.MoveNext () &amp;lt;0x102692110 + 0x01720&amp;gt; in &amp;lt;d88722dca7b54d58a8ec8b2dc00b6777#c5682ce7f485f66f00bf5a7103269dde&amp;gt;:0 &lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt; at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () &amp;lt;0x100b7cc30 + 0x00028&amp;gt; in &amp;lt;d680a8bf3a2a4c8dbbfde665ba81f6f2#c5682ce7f485f66f00bf5a7103269dde&amp;gt;:0 &lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) &amp;lt;0x100b7fff0 + 0x000d3&amp;gt; in &amp;lt;d680a8bf3a2a4c8dbbfde665ba81f6f2#c5682ce7f485f66f00bf5a7103269dde&amp;gt;:0 &lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) &amp;lt;0x100b7ff40 + 0x0008b&amp;gt; in &amp;lt;d680a8bf3a2a4c8dbbfde665ba81f6f2#c5682ce7f485f66f00bf5a7103269dde&amp;gt;:0 &lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) &amp;lt;0x100b7fed0 + 0x00053&amp;gt; in &amp;lt;d680a8bf3a2a4c8dbbfde665ba81f6f2#c5682ce7f485f66f00bf5a7103269dde&amp;gt;:0 &lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.GetResult () &amp;lt;0x100b7fea0 + 0x00017&amp;gt; in &amp;lt;d680a8bf3a2a4c8dbbfde665ba81f6f2#c5682ce7f485f66f00bf5a7103269dde&amp;gt;:0 &lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2018 21:24:12 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2018-10-18T21:24:12Z</dc:date>
    <item>
      <title>NullReferenceException when loading a layer that uses integrated Windows authentication</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/nullreferenceexception-when-loading-a-layer-that/m-p/606609#M7458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to load a webmap that contains a feature layer&amp;nbsp;that is Windows Auth-secured.&amp;nbsp;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 &lt;EM&gt;FailedToLoad&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Object reference not set to an instance of an object System.NullReferenceException: Object reference not set to an instance of an object&lt;BR /&gt; at Esri.ArcGISRuntime.Internal.RequestRequiredHandler+&amp;lt;IssueRequestAndRespond&amp;gt;d__14.MoveNext () &amp;lt;0x102692110 + 0x01720&amp;gt; in &amp;lt;d88722dca7b54d58a8ec8b2dc00b6777#c5682ce7f485f66f00bf5a7103269dde&amp;gt;:0 &lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt; at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () &amp;lt;0x100b7cc30 + 0x00028&amp;gt; in &amp;lt;d680a8bf3a2a4c8dbbfde665ba81f6f2#c5682ce7f485f66f00bf5a7103269dde&amp;gt;:0 &lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) &amp;lt;0x100b7fff0 + 0x000d3&amp;gt; in &amp;lt;d680a8bf3a2a4c8dbbfde665ba81f6f2#c5682ce7f485f66f00bf5a7103269dde&amp;gt;:0 &lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) &amp;lt;0x100b7ff40 + 0x0008b&amp;gt; in &amp;lt;d680a8bf3a2a4c8dbbfde665ba81f6f2#c5682ce7f485f66f00bf5a7103269dde&amp;gt;:0 &lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) &amp;lt;0x100b7fed0 + 0x00053&amp;gt; in &amp;lt;d680a8bf3a2a4c8dbbfde665ba81f6f2#c5682ce7f485f66f00bf5a7103269dde&amp;gt;:0 &lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.GetResult () &amp;lt;0x100b7fea0 + 0x00017&amp;gt; in &amp;lt;d680a8bf3a2a4c8dbbfde665ba81f6f2#c5682ce7f485f66f00bf5a7103269dde&amp;gt;:0 &lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 21:24:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/nullreferenceexception-when-loading-a-layer-that/m-p/606609#M7458</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-10-18T21:24:12Z</dc:date>
    </item>
  </channel>
</rss>

