<?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 Re: KmlLayer Exception with Esri.ArcGISRuntime 100.14.1 in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/kmllayer-exception-with-esri-arcgisruntime-100-14/m-p/1196727#M11185</link>
    <description>&lt;P&gt;Thank you very much for your help.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2022 13:25:31 GMT</pubDate>
    <dc:creator>RobWag</dc:creator>
    <dc:date>2022-07-28T13:25:31Z</dc:date>
    <item>
      <title>KmlLayer Exception with Esri.ArcGISRuntime 100.14.1</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/kmllayer-exception-with-esri-arcgisruntime-100-14/m-p/1189827#M11120</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;when upgrading to .NET 6 and Esri.ArcGISRuntime 100.14.1 I am currently getting&lt;BR /&gt;a System.NullReferenceException by instantiating a KmlLayer with a KmlDataset (line 4).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Uri kmlUri = new Uri("someFile.kml", UriKind.RelativeOrAbsolute);
KmlDataset dataset = new KmlDataset(kmlUri);
await dataset.LoadAsync();
KmlLayer kmlLayer = new KmlLayer(dataset);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had no problems with .NET Framework 4.8 and Esri.ArcGISRuntime 100.9.0 before.&lt;/P&gt;&lt;P&gt;When instantiating the KmlLayer with an Uri it works fine.&lt;/P&gt;&lt;P&gt;Would anyone of you have any advice as to what could be causing this?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 13:38:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/kmllayer-exception-with-esri-arcgisruntime-100-14/m-p/1189827#M11120</guid>
      <dc:creator>RobWag</dc:creator>
      <dc:date>2022-07-06T13:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: KmlLayer Exception with Esri.ArcGISRuntime 100.14.1</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/kmllayer-exception-with-esri-arcgisruntime-100-14/m-p/1189938#M11121</link>
      <description>&lt;P&gt;Hello Rob! I would be glad to look into this. Are you able to share a stack trace for this exception, or perhaps share a copy of the KML file that you are loading?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 15:58:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/kmllayer-exception-with-esri-arcgisruntime-100-14/m-p/1189938#M11121</guid>
      <dc:creator>MatveiStefarov</dc:creator>
      <dc:date>2022-07-06T15:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: KmlLayer Exception with Esri.ArcGISRuntime 100.14.1</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/kmllayer-exception-with-esri-arcgisruntime-100-14/m-p/1193202#M11145</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;sorry for the late reply. This exception occurs with every kml file. I copied the details below:&lt;/P&gt;&lt;P&gt;System.NullReferenceException&lt;BR /&gt;HResult=0x80004003&lt;BR /&gt;Message=Object reference not set to an instance of an object.&lt;BR /&gt;Source=Esri.ArcGISRuntime&lt;BR /&gt;StackTrace:&lt;BR /&gt;at Esri.ArcGISRuntime.Mapping.KmlLayer.OnLayerLoaded()&lt;BR /&gt;at Esri.ArcGISRuntime.Mapping.Layer..ctor(CoreLayer layer)&lt;BR /&gt;at Esri.ArcGISRuntime.Mapping.KmlLayer..ctor(CoreKMLLayer coreLayer, KmlDataset dataset)&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 21:38:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/kmllayer-exception-with-esri-arcgisruntime-100-14/m-p/1193202#M11145</guid>
      <dc:creator>RobWag</dc:creator>
      <dc:date>2022-07-18T21:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: KmlLayer Exception with Esri.ArcGISRuntime 100.14.1</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/kmllayer-exception-with-esri-arcgisruntime-100-14/m-p/1194200#M11152</link>
      <description>&lt;P&gt;I was able to reproduce the problem!&amp;nbsp; The error can only happen if a KmlLayer is created from a &lt;EM&gt;loaded&lt;/EM&gt; KmlDataset.&amp;nbsp; This is a relatively recent regression that happens when a constructor invokes the "loaded" callback before it's done initializing all the necessary fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem should be fixed in the next version of Runtime.&amp;nbsp; For now, you can avoid the error by NOT loading the dataset before creating a layer, or by using a different KmlLayer constructor that takes a Uri or a PortalItem.&lt;/P&gt;&lt;P&gt;Thank you for taking the time to report this bug!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 21:35:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/kmllayer-exception-with-esri-arcgisruntime-100-14/m-p/1194200#M11152</guid>
      <dc:creator>MatveiStefarov</dc:creator>
      <dc:date>2022-07-20T21:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: KmlLayer Exception with Esri.ArcGISRuntime 100.14.1</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/kmllayer-exception-with-esri-arcgisruntime-100-14/m-p/1196727#M11185</link>
      <description>&lt;P&gt;Thank you very much for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 13:25:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/kmllayer-exception-with-esri-arcgisruntime-100-14/m-p/1196727#M11185</guid>
      <dc:creator>RobWag</dc:creator>
      <dc:date>2022-07-28T13:25:31Z</dc:date>
    </item>
  </channel>
</rss>

