<?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: Every Core project/sample fails on initial load with unknown error in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/every-core-project-sample-fails-on-initial-load/m-p/1054485#M10062</link>
    <description>&lt;P&gt;I'm wondering if there's an issue in .NET Core with correctly detecting software rendering mode.&lt;/P&gt;&lt;P&gt;Could you try add add the following line of code right when the application starts up (as in the App.xaml.cs constructor):&lt;/P&gt;&lt;P&gt;System.Windows.Media.RenderOptions.ProcessRenderMode = System.Windows.Interop.RenderMode.SoftwareOnly;&lt;BR /&gt;&lt;BR /&gt;That would help confirm is that's the issue we're dealing with, and we can do a few more things to check to understand where it goes wrong (and if it works it should at least give you a workaround for now)&lt;/P&gt;</description>
    <pubDate>Wed, 05 May 2021 00:01:30 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2021-05-05T00:01:30Z</dc:date>
    <item>
      <title>Every Core project/sample fails on initial load with unknown error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/every-core-project-sample-fails-on-initial-load/m-p/1053926#M10057</link>
      <description>&lt;P&gt;Doesn't matter if it is Core 3.1 or 5. I always get the same ArcGISRuntimeException "Unknown error: DirectX failure CreateTexture code = 0x80070057" as soon as it loads the view. I've tried the documentation tutorial for a WPF app, and 2 of the ESRI github dotnet sample apps with the same result. .NET Fx versions work fine. I'm running VS 2019 16.9.4 and even installed the latest .NET 5 sdk just in case. I'm on Windows 10 Ent 64-bit 1909/18363.1500. I am accessing my PC remotely through Citrix Workspace so not sure&amp;nbsp; if that could be some kind of issue. Here is the generated error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;MapsApp Error: 0 : Pulse Failed&lt;BR /&gt;Is Remote Desktop: False&lt;BR /&gt;Rendering Mode: Hardware&lt;BR /&gt;Surface Size: 2558,949&lt;BR /&gt;DPI: 144&lt;BR /&gt;Esri.ArcGISRuntime.ArcGISRuntimeException: Unknown error: DirectX failure CreateTexture code = 0x80070057&lt;BR /&gt;at Esri.ArcGISRuntime.ArcGISException.HandleCoreError(CoreError error, Boolean throwException)&lt;BR /&gt;at RuntimeCoreNet.GeneratedWrappers.Interop.CheckError(IntPtr errorHandle, Boolean throwOnFailure, GCHandle wrapperHandle)&lt;BR /&gt;at RuntimeCoreNet.GeneratedWrappers.CoreGeoView.Pulse()&lt;BR /&gt;at Esri.ArcGISRuntime.UI.Controls.GeoView.Esri.ArcGISRuntime.Internal.IDxSurfaceSource.Pulse()&lt;BR /&gt;at Esri.ArcGISRuntime.Internal.HostedSurfaceElement.CompositionTarget_Rendering(Object sender, EventArgs e)&lt;BR /&gt;An unhandled exception of type 'Esri.ArcGISRuntime.ArcGISRuntimeException' occurred in System.Private.CoreLib.dll&lt;BR /&gt;Unknown error: DirectX failure CreateTexture code = 0x80070057&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 19:03:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/every-core-project-sample-fails-on-initial-load/m-p/1053926#M10057</guid>
      <dc:creator>MikeBrownNCDOT</dc:creator>
      <dc:date>2021-05-03T19:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Every Core project/sample fails on initial load with unknown error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/every-core-project-sample-fails-on-initial-load/m-p/1054485#M10062</link>
      <description>&lt;P&gt;I'm wondering if there's an issue in .NET Core with correctly detecting software rendering mode.&lt;/P&gt;&lt;P&gt;Could you try add add the following line of code right when the application starts up (as in the App.xaml.cs constructor):&lt;/P&gt;&lt;P&gt;System.Windows.Media.RenderOptions.ProcessRenderMode = System.Windows.Interop.RenderMode.SoftwareOnly;&lt;BR /&gt;&lt;BR /&gt;That would help confirm is that's the issue we're dealing with, and we can do a few more things to check to understand where it goes wrong (and if it works it should at least give you a workaround for now)&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 00:01:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/every-core-project-sample-fails-on-initial-load/m-p/1054485#M10062</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2021-05-05T00:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Every Core project/sample fails on initial load with unknown error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/every-core-project-sample-fails-on-initial-load/m-p/1054488#M10063</link>
      <description>&lt;P&gt;If would also be helpful if you can run this on the specific citrix instance in both NETFX and NET5 (put it in the main xaml page) and share the 4 debug messages it generates. I'd be curious if they are different.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var disable = Microsoft.Win32.Registry.GetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Avalon.Graphics", "DisableHWAcceleration", 0);
System.Diagnostics.Debug.WriteLine("Registry DisableHWAcceleration = " + disable);
System.Diagnostics.Debug.WriteLine("ProcessRenderMode = " + System.Windows.Media.RenderOptions.ProcessRenderMode);
var hwndSource = PresentationSource.FromVisual(this) as System.Windows.Interop.HwndSource;
System.Diagnostics.Debug.WriteLine("HWND Render Mode = " + hwndSource?.CompositionTarget.RenderMode);
System.Diagnostics.Debug.WriteLine("RenderCapability.Tier = " + (System.Windows.Media.RenderCapability.Tier &amp;gt;&amp;gt; 16));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 00:15:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/every-core-project-sample-fails-on-initial-load/m-p/1054488#M10063</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2021-05-05T00:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Every Core project/sample fails on initial load with unknown error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/every-core-project-sample-fails-on-initial-load/m-p/1054794#M10064</link>
      <description>&lt;P&gt;I couldn't put it in the App constructor ("IDE1007 The name&amp;nbsp;&lt;SPAN&gt;System.Windows.Media.RenderOptions.ProcessRenderMode does not exist in the current context") but I made it the first line in the MainView ctor and app/mapview loaded correctly, no exception.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;As for the debug messages, had the same results for NETFX, NET31, and NET5.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Registry DisableHWAcceleration = 0&lt;BR /&gt;ProcessRenderMode = Default&lt;BR /&gt;HWND Render Mode =&lt;BR /&gt;RenderCapability.Tier = 2&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;(hwndSource is null)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 17:45:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/every-core-project-sample-fails-on-initial-load/m-p/1054794#M10064</guid>
      <dc:creator>MikeBrownNCDOT</dc:creator>
      <dc:date>2021-05-05T17:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Every Core project/sample fails on initial load with unknown error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/every-core-project-sample-fails-on-initial-load/m-p/1054841#M10065</link>
      <description>&lt;P&gt;Thank you that's helpful. This means we know we're likely dealing with an issue detecting that software rendering is required on Citrix Workspace.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I got a couple more things to try. Without the workaround above to force software rendering, when you load the mapview, in the output you should see a message a long the lines of&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"[AppName] Information: 0 : Software rendering forced by ..."&lt;BR /&gt;&lt;BR /&gt;Do you see this in both the NETFX and NET3/5 cases? (you should definitely see it with the workaround to force software rendering). If so, what does the full message read?&lt;BR /&gt;I'd be curious if NETFX for some reason detects it, but .NET 3/5 fails to do so.&lt;BR /&gt;&lt;BR /&gt;Second, I forgot to mention the above code for getting values should be run in the Window's Loaded event. If you do that, the HwndSource returned shouldn't be null. Would you mind reposting the values returned after the window has loaded?&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 19:10:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/every-core-project-sample-fails-on-initial-load/m-p/1054841#M10065</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2021-05-05T19:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Every Core project/sample fails on initial load with unknown error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/every-core-project-sample-fails-on-initial-load/m-p/1055285#M10068</link>
      <description>&lt;P&gt;Here is what I get...&lt;/P&gt;&lt;P&gt;Without forced SW rendering&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Registry DisableHWAcceleration = 0&lt;BR /&gt;ProcessRenderMode = Default&lt;BR /&gt;HWND Render Mode = Default&lt;BR /&gt;RenderCapability.Tier = 2&lt;BR /&gt;*Exception*&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;NETFX&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Registry DisableHWAcceleration = 0&lt;BR /&gt;ProcessRenderMode = SoftwareOnly&lt;BR /&gt;HWND Render Mode = Default&lt;BR /&gt;RenderCapability.Tier = 2&lt;BR /&gt;MapsApp.exe Information: 0 : Software rendering forced by process&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;NETCORE (both 3.1 and 5)&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Registry DisableHWAcceleration = 0&lt;BR /&gt;ProcessRenderMode = SoftwareOnly&lt;BR /&gt;HWND Render Mode = Default&lt;BR /&gt;RenderCapability.Tier = 2&lt;BR /&gt;MapsApp Information: 0 : Software rendering forced by process&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 06 May 2021 16:37:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/every-core-project-sample-fails-on-initial-load/m-p/1055285#M10068</guid>
      <dc:creator>MikeBrownNCDOT</dc:creator>
      <dc:date>2021-05-06T16:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Every Core project/sample fails on initial load with unknown error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/every-core-project-sample-fails-on-initial-load/m-p/1057260#M10078</link>
      <description>&lt;P&gt;Is using software rendering only the long term solution or is this an issue that can be tracked?&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 17:30:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/every-core-project-sample-fails-on-initial-load/m-p/1057260#M10078</guid>
      <dc:creator>MikeBrownNCDOT</dc:creator>
      <dc:date>2021-05-12T17:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Every Core project/sample fails on initial load with unknown error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/every-core-project-sample-fails-on-initial-load/m-p/1058093#M10084</link>
      <description>&lt;P&gt;For anyone else that comes across this, it is a citrix&amp;nbsp; implementation issue with WPF/NETCORE. The forced software rendering is the solution until they resolve it on their end.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 16:36:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/every-core-project-sample-fails-on-initial-load/m-p/1058093#M10084</guid>
      <dc:creator>MikeBrownNCDOT</dc:creator>
      <dc:date>2021-05-14T16:36:42Z</dc:date>
    </item>
  </channel>
</rss>

