<?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 Zoom Null Reference Exception in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/zoom-null-reference-exception/m-p/1393235#M12559</link>
    <description>&lt;P&gt;Hello all, I'm running into an issue were zooming quickly causes a NullRefrenceException to be thrown. To provide further context, I'm using a standard map object and its built-in panning/zooming capabilities (no custom logic).&amp;nbsp;&lt;/P&gt;&lt;P&gt;When zooming in, the output is spammed with 'System.Net.WebException', 'System.Net.Http.HttpRequestException', and 'System.ObjectDisposedException' in System.dll. The exception points directly at "innerAsyncResult.InternalWaitForCompletion()" at line 402 in "ForwardingReadStream.cs".&lt;/P&gt;&lt;P&gt;I assume this is related to too many http requests being made, but i'm unsure. There doesn't seem to be a work around even when wrapping a "setViewpointAsync" call.&lt;BR /&gt;&lt;BR /&gt;Here are the details from the call stack:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=System
StackTrace:
at System.Net.Cache.ForwardingReadStream.EndRead(IAsyncResult asyncResult) in System.Net.Cache\ForwardingReadStream.cs:line 402&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 08 Mar 2024 16:21:19 GMT</pubDate>
    <dc:creator>JeremiahOsborne</dc:creator>
    <dc:date>2024-03-08T16:21:19Z</dc:date>
    <item>
      <title>Zoom Null Reference Exception</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/zoom-null-reference-exception/m-p/1393235#M12559</link>
      <description>&lt;P&gt;Hello all, I'm running into an issue were zooming quickly causes a NullRefrenceException to be thrown. To provide further context, I'm using a standard map object and its built-in panning/zooming capabilities (no custom logic).&amp;nbsp;&lt;/P&gt;&lt;P&gt;When zooming in, the output is spammed with 'System.Net.WebException', 'System.Net.Http.HttpRequestException', and 'System.ObjectDisposedException' in System.dll. The exception points directly at "innerAsyncResult.InternalWaitForCompletion()" at line 402 in "ForwardingReadStream.cs".&lt;/P&gt;&lt;P&gt;I assume this is related to too many http requests being made, but i'm unsure. There doesn't seem to be a work around even when wrapping a "setViewpointAsync" call.&lt;BR /&gt;&lt;BR /&gt;Here are the details from the call stack:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=System
StackTrace:
at System.Net.Cache.ForwardingReadStream.EndRead(IAsyncResult asyncResult) in System.Net.Cache\ForwardingReadStream.cs:line 402&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 08 Mar 2024 16:21:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/zoom-null-reference-exception/m-p/1393235#M12559</guid>
      <dc:creator>JeremiahOsborne</dc:creator>
      <dc:date>2024-03-08T16:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom Null Reference Exception</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/zoom-null-reference-exception/m-p/1393281#M12560</link>
      <description>&lt;P&gt;Is it a WPF Framework app? If yes, try a WPF .NET app.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 17:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/zoom-null-reference-exception/m-p/1393281#M12560</guid>
      <dc:creator>PreetiMaske</dc:creator>
      <dc:date>2024-03-08T17:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom Null Reference Exception</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/zoom-null-reference-exception/m-p/1393332#M12562</link>
      <description>&lt;P&gt;Not sure i'm following, I'm using a normal WPF desktop application solution and using components from the nuget packages shown below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-03-08 132426.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/97424iC322A013FECD77CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-03-08 132426.png" alt="Screenshot 2024-03-08 132426.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So far everything works fine, just seems to run into an "Object reference not set to an instance of an object" issue when scrolling too quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 18:27:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/zoom-null-reference-exception/m-p/1393332#M12562</guid>
      <dc:creator>JeremiahOsborne</dc:creator>
      <dc:date>2024-03-08T18:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom Null Reference Exception</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/zoom-null-reference-exception/m-p/1393507#M12563</link>
      <description>&lt;P&gt;For WPF , you can create two types of application : WPF using &lt;STRONG&gt;.NET Framework&lt;/STRONG&gt; or WPF using &lt;STRONG&gt;.NET&lt;/STRONG&gt;. These are two different frameworks for creating a WPF app. I was suggesting to create a WPF application targeting .NET.&lt;BR /&gt;Red circled ones are Microsoft's template for 1) WPF .NET and 2) WPF using .NET Framework. I was suggesting to use either the Maps SDK template( highlighted in blue) or the one I checked in image below.&lt;BR /&gt;&lt;BR /&gt;Blue is ArcGIS Maps SDK template for WPF .NET&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PreetiMaske_1-1709940706068.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/97479iCBEB3F0B3F840624/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PreetiMaske_1-1709940706068.png" alt="PreetiMaske_1-1709940706068.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SDK templates can be installed from within Visual Studio. See&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/install-and-set-up/#install-the-visual-studio-project-templates-optional" target="_blank"&gt;https://developers.arcgis.com/net/install-and-set-up/#install-the-visual-studio-project-templates-optional&lt;/A&gt;&amp;nbsp;for more info.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 23:36:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/zoom-null-reference-exception/m-p/1393507#M12563</guid>
      <dc:creator>PreetiMaske</dc:creator>
      <dc:date>2024-03-08T23:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom Null Reference Exception</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/zoom-null-reference-exception/m-p/1396983#M12573</link>
      <description>&lt;P&gt;The exception you're pointing to shouldn't be an issue - this can occur deep down the .NET networking stack when a request gets cancelled, but it should _not_ lead to an application crash. It's merely a first-chance exception, and just how .NET does network requests. Did you by any chance enable that exception in the error-list to break on first chance exceptions of this type? Are you actually seeing an application crash if you just continue? (or run without the debugger attached)&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2024 22:34:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/zoom-null-reference-exception/m-p/1396983#M12573</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2024-03-16T22:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom Null Reference Exception</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/zoom-null-reference-exception/m-p/1526544#M12995</link>
      <description>&lt;P&gt;I am running into this same issue on some dev machines. Did this end up becoming an issue or a non issue for you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 16:13:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/zoom-null-reference-exception/m-p/1526544#M12995</guid>
      <dc:creator>SP2501</dc:creator>
      <dc:date>2024-08-23T16:13:00Z</dc:date>
    </item>
  </channel>
</rss>

