<?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 Exception in .NET 8 WPF app when loading Runtime v200.2.0 in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/exception-in-net-8-wpf-app-when-loading-runtime/m-p/1349762#M12313</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've upgraded my working .NET 7 WPF app with the Esri.ArcGISRuntime.WPF nuget v200.2.0 to the new .NET 8.&lt;/P&gt;&lt;P&gt;Now, while starting the app I get an Exception in my App constructor in the first line I'm accessing Arcis like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;    public App()
    {
        ArcGISRuntimeEnvironment.SetLicense("MyLicense");
        ArcGISRuntimeEnvironment.ApiKey = "MyKey";
        ...
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Line 3 throws the exeption:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;System.InvalidOperationException: 'Could not load ArcGIS Runtime (RuntimeCoreNet200_2.dll) or one of its dependencies. Ensure "Microsoft Visual C++ 2015-2022 Redistributable" is installed.'&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;C++ Redist is installed in x86 and x64. I even tried to reinstall it. No help. I'm running it directly via attached Debugger out of Visual Studio 2022 (v17.8.0) on a Windows 11 Pro 23H2 machine...&lt;/P&gt;&lt;P&gt;Anyhow: When I go back to .NET 7 everything works fine.&lt;/P&gt;&lt;P&gt;Do I have to wait for an update of your Runtime to use .NET 8 or is there any workaround to use the current Runtime with .NET 8?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Soko&lt;/P&gt;&lt;P&gt;PS: Updating my .NET7 MAUI app (Android only) to .NET8 MAUI seems to work. I don't get an exception when setting the license and the MapViews seem to work properly as well at first glance.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2023 16:57:21 GMT</pubDate>
    <dc:creator>SokoFromNZ</dc:creator>
    <dc:date>2023-11-15T16:57:21Z</dc:date>
    <item>
      <title>Exception in .NET 8 WPF app when loading Runtime v200.2.0</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/exception-in-net-8-wpf-app-when-loading-runtime/m-p/1349762#M12313</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've upgraded my working .NET 7 WPF app with the Esri.ArcGISRuntime.WPF nuget v200.2.0 to the new .NET 8.&lt;/P&gt;&lt;P&gt;Now, while starting the app I get an Exception in my App constructor in the first line I'm accessing Arcis like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;    public App()
    {
        ArcGISRuntimeEnvironment.SetLicense("MyLicense");
        ArcGISRuntimeEnvironment.ApiKey = "MyKey";
        ...
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Line 3 throws the exeption:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;System.InvalidOperationException: 'Could not load ArcGIS Runtime (RuntimeCoreNet200_2.dll) or one of its dependencies. Ensure "Microsoft Visual C++ 2015-2022 Redistributable" is installed.'&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;C++ Redist is installed in x86 and x64. I even tried to reinstall it. No help. I'm running it directly via attached Debugger out of Visual Studio 2022 (v17.8.0) on a Windows 11 Pro 23H2 machine...&lt;/P&gt;&lt;P&gt;Anyhow: When I go back to .NET 7 everything works fine.&lt;/P&gt;&lt;P&gt;Do I have to wait for an update of your Runtime to use .NET 8 or is there any workaround to use the current Runtime with .NET 8?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Soko&lt;/P&gt;&lt;P&gt;PS: Updating my .NET7 MAUI app (Android only) to .NET8 MAUI seems to work. I don't get an exception when setting the license and the MapViews seem to work properly as well at first glance.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 16:57:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/exception-in-net-8-wpf-app-when-loading-runtime/m-p/1349762#M12313</guid>
      <dc:creator>SokoFromNZ</dc:creator>
      <dc:date>2023-11-15T16:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in .NET 8 WPF app when loading Runtime v200.2.0</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/exception-in-net-8-wpf-app-when-loading-runtime/m-p/1349780#M12314</link>
      <description>&lt;P&gt;Try adding &amp;lt;UseRidGraph&amp;gt;true&amp;lt;/UseRidGraph&amp;gt; to a property group. There's a breaking change in .NET 8 that affects how native assemblies gets deployed (This workaround won't be needed for 200.3)&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 17:13:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/exception-in-net-8-wpf-app-when-loading-runtime/m-p/1349780#M12314</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2023-11-15T17:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in .NET 8 WPF app when loading Runtime v200.2.0</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/exception-in-net-8-wpf-app-when-loading-runtime/m-p/1349782#M12315</link>
      <description>&lt;P&gt;Thanks for the speedy reply. It works, awesome!&lt;/P&gt;&lt;P&gt;Do you have an ETA for v200.3? Just a rough one like: one week, one month, one year...&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 17:22:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/exception-in-net-8-wpf-app-when-loading-runtime/m-p/1349782#M12315</guid>
      <dc:creator>SokoFromNZ</dc:creator>
      <dc:date>2023-11-15T17:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in .NET 8 WPF app when loading Runtime v200.2.0</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/exception-in-net-8-wpf-app-when-loading-runtime/m-p/1349785#M12316</link>
      <description>&lt;P&gt;December&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 17:23:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/exception-in-net-8-wpf-app-when-loading-runtime/m-p/1349785#M12316</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2023-11-15T17:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in .NET 8 WPF app when loading Runtime v200.2.0</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/exception-in-net-8-wpf-app-when-loading-runtime/m-p/1359882#M12374</link>
      <description>&lt;P&gt;Not sure if you missed it or not, but 200.3 went live last week, and you no longer need the UseCidGraph workaround (unless you use WinUI, but that's on WinUI team to fix - slated for their v1.5 release).&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 19:50:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/exception-in-net-8-wpf-app-when-loading-runtime/m-p/1359882#M12374</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2023-12-12T19:50:44Z</dc:date>
    </item>
  </channel>
</rss>

