<?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: Call to ArcGISRuntimeEnvironment.SetLicense throws an exception. in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/call-to-arcgisruntimeenvironment-setlicense-throws/m-p/1663297#M13765</link>
    <description>&lt;P&gt;Thanks for responding quickly.&lt;/P&gt;&lt;P&gt;ArcGISRuntimeEnvironment.SetLicense(@"runtimelite,1000,rud*****") is throwing&amp;nbsp;System.InvalidOperationException: 'Operation is not valid due to the current state of the object.'&lt;/P&gt;&lt;P&gt;at WinRT.ExceptionHelpers.&amp;lt;ThrowExceptionForHR&amp;gt;g__Throw|38_0(Int32 hr)&lt;/P&gt;&lt;P&gt;The stack trace is small.&amp;nbsp; The HResult is&amp;nbsp;-2147009196 if that helps at all.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Nov 2025 17:55:04 GMT</pubDate>
    <dc:creator>BradleyJakobitz</dc:creator>
    <dc:date>2025-11-04T17:55:04Z</dc:date>
    <item>
      <title>Call to ArcGISRuntimeEnvironment.SetLicense throws an exception.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/call-to-arcgisruntimeenvironment-setlicense-throws/m-p/1353655#M12347</link>
      <description>&lt;P&gt;When I call&amp;nbsp;sri.ArcGISRuntime.ArcGISRuntimeEnvironment.SetLicense(licenseString);&lt;BR /&gt;The result is&amp;nbsp;Exception thrown: 'System.InvalidOperationException' in WinRT.Runtime.dll&lt;BR /&gt;&lt;BR /&gt;Please advice.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 18:33:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/call-to-arcgisruntimeenvironment-setlicense-throws/m-p/1353655#M12347</guid>
      <dc:creator>DagHeggelund</dc:creator>
      <dc:date>2023-11-27T18:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Call to ArcGISRuntimeEnvironment.SetLicense throws an exception.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/call-to-arcgisruntimeenvironment-setlicense-throws/m-p/1353705#M12348</link>
      <description>&lt;P&gt;&amp;nbsp;Are you also seeing this if you just call &lt;SPAN&gt;ArcGISRuntimeEnvironment.Initialize() ?&lt;BR /&gt;If so it's most likely an issue with the native libraries not getting deployed.&lt;BR /&gt;What is your platform and target framework?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 19:29:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/call-to-arcgisruntimeenvironment-setlicense-throws/m-p/1353705#M12348</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2023-11-27T19:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Call to ArcGISRuntimeEnvironment.SetLicense throws an exception.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/call-to-arcgisruntimeenvironment-setlicense-throws/m-p/1663260#M13761</link>
      <description>&lt;P&gt;We are seeing a similar exception.&amp;nbsp; We are setting the license right before we initialize ArcGISRuntimeEnvironment.&amp;nbsp; This is nearly the first thing we do during app startup.&amp;nbsp; The ArcGISRuntimeEnvironment.IsInitialized is false just before setting the license.&amp;nbsp; We are targeting C# .Net 8.&amp;nbsp; If we don't try to set the license and just call&amp;nbsp;&lt;SPAN&gt;ArcGISRuntimeEnvironment.Initialize() we don't see the exception.&lt;/SPAN&gt; &amp;nbsp; Any suggestions are appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 16:38:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/call-to-arcgisruntimeenvironment-setlicense-throws/m-p/1663260#M13761</guid>
      <dc:creator>BradleyJakobitz</dc:creator>
      <dc:date>2025-11-04T16:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Call to ArcGISRuntimeEnvironment.SetLicense throws an exception.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/call-to-arcgisruntimeenvironment-setlicense-throws/m-p/1663269#M13762</link>
      <description>&lt;P&gt;Can you share the specific exception type, message and callstack?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 16:53:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/call-to-arcgisruntimeenvironment-setlicense-throws/m-p/1663269#M13762</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2025-11-04T16:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Call to ArcGISRuntimeEnvironment.SetLicense throws an exception.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/call-to-arcgisruntimeenvironment-setlicense-throws/m-p/1663297#M13765</link>
      <description>&lt;P&gt;Thanks for responding quickly.&lt;/P&gt;&lt;P&gt;ArcGISRuntimeEnvironment.SetLicense(@"runtimelite,1000,rud*****") is throwing&amp;nbsp;System.InvalidOperationException: 'Operation is not valid due to the current state of the object.'&lt;/P&gt;&lt;P&gt;at WinRT.ExceptionHelpers.&amp;lt;ThrowExceptionForHR&amp;gt;g__Throw|38_0(Int32 hr)&lt;/P&gt;&lt;P&gt;The stack trace is small.&amp;nbsp; The HResult is&amp;nbsp;-2147009196 if that helps at all.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 17:55:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/call-to-arcgisruntimeenvironment-setlicense-throws/m-p/1663297#M13765</guid>
      <dc:creator>BradleyJakobitz</dc:creator>
      <dc:date>2025-11-04T17:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Call to ArcGISRuntimeEnvironment.SetLicense throws an exception.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/call-to-arcgisruntimeenvironment-setlicense-throws/m-p/1663300#M13766</link>
      <description>&lt;P&gt;If you put a try/catch around the SetLicense call, will you get a better exception in the catch? I've seen some issues with Microsoft not always handling un-caught exceptions that well&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 17:57:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/call-to-arcgisruntimeenvironment-setlicense-throws/m-p/1663300#M13766</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2025-11-04T17:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Call to ArcGISRuntimeEnvironment.SetLicense throws an exception.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/call-to-arcgisruntimeenvironment-setlicense-throws/m-p/1663311#M13767</link>
      <description>&lt;P&gt;Well, I feel foolish.&amp;nbsp; I had turned off Enable Just My Code for something else.&amp;nbsp; The exception must be thrown in a lower library and caught.&amp;nbsp; I'm unable to catch it and the license result comes back valid.&amp;nbsp; Thank you for your time.&amp;nbsp; Hopefully, this helps someone else.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 18:18:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/call-to-arcgisruntimeenvironment-setlicense-throws/m-p/1663311#M13767</guid>
      <dc:creator>BradleyJakobitz</dc:creator>
      <dc:date>2025-11-04T18:18:23Z</dc:date>
    </item>
  </channel>
</rss>

