<?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: ArcGISTiledMapServiceLayer not rendering after sleep in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgistiledmapservicelayer-not-rendering-after/m-p/755836#M9463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This problem have now been solved thanks to Esris support team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Il explain it if someone else has the same problem:&lt;/P&gt;&lt;P&gt;With Fiddler I could see that server responded "498 Invalid Token" when request were sent for new tiles after beeing in sleppmode for more then an hour.&lt;/P&gt;&lt;P&gt;This was becouse the token were generated in Arcgis Server with a lifespan of one hour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was fixed by replacing&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 12.0pt; font-family: 'Calibri',sans-serif;"&gt;IdentityManager.Current.GenerateCredentialAsync(ONLINE_BASEMAP_TOKEN_URL, USERNAME, PASSWORD);&lt;BR /&gt; cred.ExpirationDate = DateTime.Now.AddDays(14);&lt;BR /&gt; IdentityManager.Current.TokenValidity = 14 * 24 * 60;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #909090;"&gt;&lt;EM style="font-size: 12pt; font-family: Calibri, sans-serif;"&gt;with&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&lt;EM style="font-size: 12pt; font-family: Calibri, sans-serif;"&gt;GenerateTokenOptions options = new GenerateTokenOptions();&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-size: 12pt;"&gt;&lt;EM&gt;options.TokenValidity = 60 * 24 * 14;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-size: 12pt;"&gt;&lt;EM&gt; options.TokenAuthenticationType = TokenAuthenticationType.ArcGISToken;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-size: 12pt;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var cred = await IdentityManager.Current.GenerateCredentialAsync(ONLINE_BASEMAP_TOKEN_URL, USERNAME, PASSWORD, options);&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-size: 12pt;"&gt;&lt;EM&gt;Another solution could have been to change the lifespan of the token on the server&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Aug 2016 13:10:42 GMT</pubDate>
    <dc:creator>MarcusHakansson</dc:creator>
    <dc:date>2016-08-01T13:10:42Z</dc:date>
    <item>
      <title>ArcGISTiledMapServiceLayer not rendering after sleep</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgistiledmapservicelayer-not-rendering-after/m-p/755835#M9462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using ArcGIS Runtime SDK for .NET (10.2.7) to develop an App in Visual Studio 2013.&lt;/P&gt;&lt;P&gt;I've installed the App in a device (tablet) wich uses Windows 8.1 as its OS. When i start the App the map looks fine but if I dont use the device for about an hour or more and then log in (nessesary becouse device is in sleepmode) the map doesnt show. All I see is blank tiles and the map does not reload. So I have to shut down the App and open it again to see the map.&lt;/P&gt;&lt;P&gt;I've appended the project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 21:51:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgistiledmapservicelayer-not-rendering-after/m-p/755835#M9462</guid>
      <dc:creator>MarcusHakansson</dc:creator>
      <dc:date>2016-06-27T21:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISTiledMapServiceLayer not rendering after sleep</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgistiledmapservicelayer-not-rendering-after/m-p/755836#M9463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This problem have now been solved thanks to Esris support team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Il explain it if someone else has the same problem:&lt;/P&gt;&lt;P&gt;With Fiddler I could see that server responded "498 Invalid Token" when request were sent for new tiles after beeing in sleppmode for more then an hour.&lt;/P&gt;&lt;P&gt;This was becouse the token were generated in Arcgis Server with a lifespan of one hour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was fixed by replacing&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 12.0pt; font-family: 'Calibri',sans-serif;"&gt;IdentityManager.Current.GenerateCredentialAsync(ONLINE_BASEMAP_TOKEN_URL, USERNAME, PASSWORD);&lt;BR /&gt; cred.ExpirationDate = DateTime.Now.AddDays(14);&lt;BR /&gt; IdentityManager.Current.TokenValidity = 14 * 24 * 60;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #909090;"&gt;&lt;EM style="font-size: 12pt; font-family: Calibri, sans-serif;"&gt;with&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&lt;EM style="font-size: 12pt; font-family: Calibri, sans-serif;"&gt;GenerateTokenOptions options = new GenerateTokenOptions();&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-size: 12pt;"&gt;&lt;EM&gt;options.TokenValidity = 60 * 24 * 14;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-size: 12pt;"&gt;&lt;EM&gt; options.TokenAuthenticationType = TokenAuthenticationType.ArcGISToken;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-size: 12pt;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var cred = await IdentityManager.Current.GenerateCredentialAsync(ONLINE_BASEMAP_TOKEN_URL, USERNAME, PASSWORD, options);&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-size: 12pt;"&gt;&lt;EM&gt;Another solution could have been to change the lifespan of the token on the server&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 13:10:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgistiledmapservicelayer-not-rendering-after/m-p/755836#M9463</guid>
      <dc:creator>MarcusHakansson</dc:creator>
      <dc:date>2016-08-01T13:10:42Z</dc:date>
    </item>
  </channel>
</rss>

