<?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 Gray Map on .NET Runtime SDK WPF App on Getac E100 in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/gray-map-on-net-runtime-sdk-wpf-app-on-getac-e100/m-p/562563#M3791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;i'm struggling with this problem.&lt;/P&gt;&lt;P&gt;Have developed a simple base map application in WPF using .NET Runtime SDK 10.2.7 and VS2012.&lt;/P&gt;&lt;P&gt;Everything is working fine on my my developer PC (Win10); tested also on PCs with Win8 and Win7 and all it's OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I try to deploy the application on a &lt;A href="http://us.getac.com/tablets/e100/features.html" rel="nofollow noopener noreferrer" target="_blank"&gt;GETAC E100&lt;/A&gt;​ (which on paper fullfills all the ArcGIS runtime SDK requirements).&lt;/P&gt;&lt;P&gt;What happens is that the application runs without any error (I mean nowhere, MS event viewer, directX logs, nothing !!!) but the map remain simply GRAY !!! I can move the mouse on the map and I see the coordinates changing; I can even zoom pinching with my fingers: everything works but the map is gray; I don't even see the base grids.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The application loads a simple TPK package I prepared using the &lt;A href="https://github.com/Esri/arcgis-runtime-samples-dotnethttp://" rel="nofollow noopener noreferrer" target="_blank"&gt;ESRI Samples&lt;/A&gt; (ExportTileCache sample).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the loading code:&lt;/P&gt;&lt;P&gt;XAML&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;esri:MapView x:Name="myMapView" WrapAround="True" Grid.Column="1" BorderBrush="#FF7F7F7F" Margin="0,0,5,5" Style="{StaticResource NoLogoStyle}"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:MapView.LocationDisplay&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:LocationDisplay 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoPanMode="Off"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DefaultSymbol="{StaticResource NotMovingMarkerSym}" CourseSymbol="{StaticResource MovingMarkerSym}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsEnabled="False" IsPingAnimationEnabled="False"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:LocationDisplay&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:MapView.LocationDisplay&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Map&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--&amp;lt;esri:MessageLayer ID="MyMessageLayer"/&amp;gt;--&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Map&amp;gt;
&amp;lt;/esri:MapView&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VB.NET behind code&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Public Sub New()
&amp;nbsp;&amp;nbsp;&amp;nbsp; ' This call is required by the designer.
&amp;nbsp;&amp;nbsp;&amp;nbsp; InitializeComponent()

&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Force the spatial reference
&amp;nbsp;&amp;nbsp;&amp;nbsp; myMapView.Map.SpatialReference = SpatialReference.Create(3857)
End Sub

Private Async Sub MainWindow_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded
&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Load the mission map data
&amp;nbsp;&amp;nbsp;&amp;nbsp; Await LoadMissionMapData()
End Sub

Private Async Function LoadMissionMapData() As Task
&amp;nbsp;&amp;nbsp;&amp;nbsp; Try
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim misDataFile As String = System.AppDomain.CurrentDomain.BaseDirectory + My.Settings.MissionDataFolder + "\" + My.Settings.MissonDataFile
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ltLayer = New ArcGISLocalTiledLayer(misDataFile)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If ltLayer IsNot Nothing Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddHandler myMapView.LayerLoaded, AddressOf MissionDataLoaded
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myMapView.Map.Layers.Add(ltLayer)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&amp;nbsp;&amp;nbsp;&amp;nbsp; Catch ex As Exception
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message)
&amp;nbsp;&amp;nbsp;&amp;nbsp; End Try
End Function

Private Async Sub MissionDataLoaded(sender As Object, e As LayerLoadedEventArgs)
&amp;nbsp;&amp;nbsp;&amp;nbsp; If e.LoadError IsNot Nothing Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Utils.WriteException(e.LoadError)
&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&amp;nbsp;&amp;nbsp;&amp;nbsp; If e.Layer IsNot Nothing AndAlso e.Layer.Status = LayerStatus.Initialized AndAlso e.Layer.DisplayName = "Mission Data" Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myMapView.MaximumExtent = e.Layer.FullExtent
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If myMapView.Map.SpatialReference Is Nothing Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Utils.WriteLog("WKID undefined")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
End Sub


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, any help ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 00:15:39 GMT</pubDate>
    <dc:creator>GiorgioCassina</dc:creator>
    <dc:date>2021-12-12T00:15:39Z</dc:date>
    <item>
      <title>Gray Map on .NET Runtime SDK WPF App on Getac E100</title>
      <link>https://community.esri.com/t5/developers-questions/gray-map-on-net-runtime-sdk-wpf-app-on-getac-e100/m-p/562563#M3791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;i'm struggling with this problem.&lt;/P&gt;&lt;P&gt;Have developed a simple base map application in WPF using .NET Runtime SDK 10.2.7 and VS2012.&lt;/P&gt;&lt;P&gt;Everything is working fine on my my developer PC (Win10); tested also on PCs with Win8 and Win7 and all it's OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I try to deploy the application on a &lt;A href="http://us.getac.com/tablets/e100/features.html" rel="nofollow noopener noreferrer" target="_blank"&gt;GETAC E100&lt;/A&gt;​ (which on paper fullfills all the ArcGIS runtime SDK requirements).&lt;/P&gt;&lt;P&gt;What happens is that the application runs without any error (I mean nowhere, MS event viewer, directX logs, nothing !!!) but the map remain simply GRAY !!! I can move the mouse on the map and I see the coordinates changing; I can even zoom pinching with my fingers: everything works but the map is gray; I don't even see the base grids.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The application loads a simple TPK package I prepared using the &lt;A href="https://github.com/Esri/arcgis-runtime-samples-dotnethttp://" rel="nofollow noopener noreferrer" target="_blank"&gt;ESRI Samples&lt;/A&gt; (ExportTileCache sample).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the loading code:&lt;/P&gt;&lt;P&gt;XAML&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;esri:MapView x:Name="myMapView" WrapAround="True" Grid.Column="1" BorderBrush="#FF7F7F7F" Margin="0,0,5,5" Style="{StaticResource NoLogoStyle}"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:MapView.LocationDisplay&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:LocationDisplay 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoPanMode="Off"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DefaultSymbol="{StaticResource NotMovingMarkerSym}" CourseSymbol="{StaticResource MovingMarkerSym}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsEnabled="False" IsPingAnimationEnabled="False"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:LocationDisplay&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:MapView.LocationDisplay&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Map&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--&amp;lt;esri:MessageLayer ID="MyMessageLayer"/&amp;gt;--&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Map&amp;gt;
&amp;lt;/esri:MapView&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VB.NET behind code&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Public Sub New()
&amp;nbsp;&amp;nbsp;&amp;nbsp; ' This call is required by the designer.
&amp;nbsp;&amp;nbsp;&amp;nbsp; InitializeComponent()

&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Force the spatial reference
&amp;nbsp;&amp;nbsp;&amp;nbsp; myMapView.Map.SpatialReference = SpatialReference.Create(3857)
End Sub

Private Async Sub MainWindow_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded
&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Load the mission map data
&amp;nbsp;&amp;nbsp;&amp;nbsp; Await LoadMissionMapData()
End Sub

Private Async Function LoadMissionMapData() As Task
&amp;nbsp;&amp;nbsp;&amp;nbsp; Try
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim misDataFile As String = System.AppDomain.CurrentDomain.BaseDirectory + My.Settings.MissionDataFolder + "\" + My.Settings.MissonDataFile
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ltLayer = New ArcGISLocalTiledLayer(misDataFile)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If ltLayer IsNot Nothing Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddHandler myMapView.LayerLoaded, AddressOf MissionDataLoaded
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myMapView.Map.Layers.Add(ltLayer)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&amp;nbsp;&amp;nbsp;&amp;nbsp; Catch ex As Exception
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message)
&amp;nbsp;&amp;nbsp;&amp;nbsp; End Try
End Function

Private Async Sub MissionDataLoaded(sender As Object, e As LayerLoadedEventArgs)
&amp;nbsp;&amp;nbsp;&amp;nbsp; If e.LoadError IsNot Nothing Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Utils.WriteException(e.LoadError)
&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&amp;nbsp;&amp;nbsp;&amp;nbsp; If e.Layer IsNot Nothing AndAlso e.Layer.Status = LayerStatus.Initialized AndAlso e.Layer.DisplayName = "Mission Data" Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myMapView.MaximumExtent = e.Layer.FullExtent
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If myMapView.Map.SpatialReference Is Nothing Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Utils.WriteLog("WKID undefined")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
End Sub


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, any help ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:15:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/gray-map-on-net-runtime-sdk-wpf-app-on-getac-e100/m-p/562563#M3791</guid>
      <dc:creator>GiorgioCassina</dc:creator>
      <dc:date>2021-12-12T00:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Gray Map on .NET Runtime SDK WPF App on Getac E100</title>
      <link>https://community.esri.com/t5/developers-questions/gray-map-on-net-runtime-sdk-wpf-app-on-getac-e100/m-p/562564#M3792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just for adding some more info.....&lt;/P&gt;&lt;P&gt;This is very strange !!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I connect to GETAC E100 via remote desktop and launch the application I can see the map correctly. Then I leave the app open and log back phisically to the Getac regain local control. MAGIC: I can see correctly the map on the application. I can zoom, I can pan and all is fine. If I close the application and rerun it I come back to the gray map !!! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;What happens ?????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 12:34:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/gray-map-on-net-runtime-sdk-wpf-app-on-getac-e100/m-p/562564#M3792</guid>
      <dc:creator>GiorgioCassina</dc:creator>
      <dc:date>2016-05-24T12:34:03Z</dc:date>
    </item>
  </channel>
</rss>

