<?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 Can't Download AGOL Tile Maps in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/can-t-download-agol-tile-maps/m-p/191767#M2246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on an online offline map&amp;nbsp;from&amp;nbsp; the DotNet tutorial offline map tutorial. Everything works well including the offline rendering from the locally created database. However, when I want to use another tiled base map such as the following&lt;/P&gt;&lt;P&gt;&lt;A href="http://tiledbasemaps.arcgis.com/arcgis/rest/services/World_Topo_Map/MapServer"&gt;http://tiledbasemaps.arcgis.com/arcgis/rest/services/World_Topo_Map/MapServer&lt;/A&gt;&amp;nbsp;I am not able to. I have tried using the credential variable from the IdentityManager class using my organization login and password from bellow documentation but have not had any luck. The credentials are not going through. Help!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_portal = new ArcGISPortal();&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// use the IdentityManager to authenticate a user for a portal&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN&gt;// exception will be thrown here for bad credential ...&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN&gt;var&lt;/SPAN&gt; cred = &lt;SPAN&gt;await&lt;/SPAN&gt; Esri.ArcGISRuntime.Security.IdentityManager.Current.GenerateCredentialAsync(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fanorganization.maps.arcgis.com" rel="nofollow" target="_blank"&gt;http://anorganization.maps.arcgis.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;, "myLogin", "myPassword");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN&gt;// add credential if generation was successful&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Esri.ArcGISRuntime.Security.IdentityManager.Current.AddCredential(cred);&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN&gt;catch&lt;/SPAN&gt;(ArcGISWebException webExp)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN&gt;// ... handle exception for bad credential here ...&lt;/SPAN&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// connect to the server (IdentityManager automatically includes the credential if available)&lt;/SPAN&gt;&lt;BR /&gt;_portal = &lt;SPAN&gt;await&lt;/SPAN&gt; Esri.ArcGISRuntime.Portal.ArcGISPortal.CreateAsync(&lt;SPAN&gt;new&lt;/SPAN&gt; Uri(&lt;SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fanorganization.maps.arcgis.com" rel="nofollow" target="_blank"&gt;http://anorganization.maps.arcgis.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;));&lt;BR /&gt;ArcGISPortalUser user = _portal.CurrentUser;&lt;BR /&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; userName = user.FullName;&lt;BR /&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; orgName = _portal.ArcGISPortalInfo.Name;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Sep 2016 20:37:58 GMT</pubDate>
    <dc:creator>thomasbales</dc:creator>
    <dc:date>2016-09-12T20:37:58Z</dc:date>
    <item>
      <title>Can't Download AGOL Tile Maps</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/can-t-download-agol-tile-maps/m-p/191767#M2246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on an online offline map&amp;nbsp;from&amp;nbsp; the DotNet tutorial offline map tutorial. Everything works well including the offline rendering from the locally created database. However, when I want to use another tiled base map such as the following&lt;/P&gt;&lt;P&gt;&lt;A href="http://tiledbasemaps.arcgis.com/arcgis/rest/services/World_Topo_Map/MapServer"&gt;http://tiledbasemaps.arcgis.com/arcgis/rest/services/World_Topo_Map/MapServer&lt;/A&gt;&amp;nbsp;I am not able to. I have tried using the credential variable from the IdentityManager class using my organization login and password from bellow documentation but have not had any luck. The credentials are not going through. Help!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_portal = new ArcGISPortal();&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// use the IdentityManager to authenticate a user for a portal&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN&gt;// exception will be thrown here for bad credential ...&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN&gt;var&lt;/SPAN&gt; cred = &lt;SPAN&gt;await&lt;/SPAN&gt; Esri.ArcGISRuntime.Security.IdentityManager.Current.GenerateCredentialAsync(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fanorganization.maps.arcgis.com" rel="nofollow" target="_blank"&gt;http://anorganization.maps.arcgis.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;, "myLogin", "myPassword");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN&gt;// add credential if generation was successful&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Esri.ArcGISRuntime.Security.IdentityManager.Current.AddCredential(cred);&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN&gt;catch&lt;/SPAN&gt;(ArcGISWebException webExp)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN&gt;// ... handle exception for bad credential here ...&lt;/SPAN&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// connect to the server (IdentityManager automatically includes the credential if available)&lt;/SPAN&gt;&lt;BR /&gt;_portal = &lt;SPAN&gt;await&lt;/SPAN&gt; Esri.ArcGISRuntime.Portal.ArcGISPortal.CreateAsync(&lt;SPAN&gt;new&lt;/SPAN&gt; Uri(&lt;SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fanorganization.maps.arcgis.com" rel="nofollow" target="_blank"&gt;http://anorganization.maps.arcgis.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;));&lt;BR /&gt;ArcGISPortalUser user = _portal.CurrentUser;&lt;BR /&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; userName = user.FullName;&lt;BR /&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; orgName = _portal.ArcGISPortalInfo.Name;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 20:37:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/can-t-download-agol-tile-maps/m-p/191767#M2246</guid>
      <dc:creator>thomasbales</dc:creator>
      <dc:date>2016-09-12T20:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Download AGOL Tile Maps</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/can-t-download-agol-tile-maps/m-p/191768#M2247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understood correctly, you get signed in ok to the portal that you are using and get portal and user information but when you try to create the offline export, it gives an error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 09:24:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/can-t-download-agol-tile-maps/m-p/191768#M2247</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2016-09-13T09:24:12Z</dc:date>
    </item>
  </channel>
</rss>

