<?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 WPF app with Api key not working in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/wpf-app-with-api-key-not-working/m-p/1516657#M12942</link>
    <description>&lt;P&gt;Hi, noob here.&lt;/P&gt;&lt;P&gt;I have created an Location Platform Account (or so I think... by the way, how can I check what type my account is?).&lt;/P&gt;&lt;P&gt;Then I followed this tutorial to create an API key:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/documentation/security-and-authentication/api-key-authentication/api-key-credentials/" target="_self"&gt;https://developers.arcgis.com/documentation/security-and-authentication/api-key-authentication/api-key-credentials/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And followed this tutorial to create WPF app with a simple map:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/maps-2d/tutorials/display-a-map/" target="_self"&gt;https://developers.arcgis.com/net/maps-2d/tutorials/display-a-map/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I run the app, it shows MainWindow, with the text "powered by Esri" in bottom-right corner, but no map is shown.&lt;/P&gt;&lt;P&gt;In output window, it says "The provided APIKey is invalid, expired or does not have access to the resource."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;note - when creating the API key, in the Referrers step, I did put "*", as I am not sure what to write there... (my app is WPF, so no domain involved...?¿)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2024 13:44:42 GMT</pubDate>
    <dc:creator>papillon2k2</dc:creator>
    <dc:date>2024-08-08T13:44:42Z</dc:date>
    <item>
      <title>WPF app with Api key not working</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/wpf-app-with-api-key-not-working/m-p/1516657#M12942</link>
      <description>&lt;P&gt;Hi, noob here.&lt;/P&gt;&lt;P&gt;I have created an Location Platform Account (or so I think... by the way, how can I check what type my account is?).&lt;/P&gt;&lt;P&gt;Then I followed this tutorial to create an API key:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/documentation/security-and-authentication/api-key-authentication/api-key-credentials/" target="_self"&gt;https://developers.arcgis.com/documentation/security-and-authentication/api-key-authentication/api-key-credentials/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And followed this tutorial to create WPF app with a simple map:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/maps-2d/tutorials/display-a-map/" target="_self"&gt;https://developers.arcgis.com/net/maps-2d/tutorials/display-a-map/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I run the app, it shows MainWindow, with the text "powered by Esri" in bottom-right corner, but no map is shown.&lt;/P&gt;&lt;P&gt;In output window, it says "The provided APIKey is invalid, expired or does not have access to the resource."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;note - when creating the API key, in the Referrers step, I did put "*", as I am not sure what to write there... (my app is WPF, so no domain involved...?¿)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 13:44:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/wpf-app-with-api-key-not-working/m-p/1516657#M12942</guid>
      <dc:creator>papillon2k2</dc:creator>
      <dc:date>2024-08-08T13:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: WPF app with Api key not working</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/wpf-app-with-api-key-not-working/m-p/1516759#M12943</link>
      <description>&lt;P&gt;Leave the referrer blank and it should work. I reproduced putting in a * will break it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also specify an actual referrer url like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dotMorten_esri_1-1723132204615.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111945iEF55503C6184E488/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dotMorten_esri_1-1723132204615.png" alt="dotMorten_esri_1-1723132204615.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And then in the app configure it to use that referrer:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dotMorten_esri_2-1723132301273.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111947iD58D9897C9436E8B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dotMorten_esri_2-1723132301273.png" alt="dotMorten_esri_2-1723132301273.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also make sure you enable at least the basemap service (and anything else you plan on using the key for)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dotMorten_esri_0-1723132180146.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111944i9CBF58B434E84181/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dotMorten_esri_0-1723132180146.png" alt="dotMorten_esri_0-1723132180146.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 15:53:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/wpf-app-with-api-key-not-working/m-p/1516759#M12943</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2024-08-08T15:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: WPF app with Api key not working</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/wpf-app-with-api-key-not-working/m-p/1516806#M12945</link>
      <description>&lt;P&gt;That made it! thanks mate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, I have come to know about all this ArcGIS SDK and its possibilites after trying your NmeaParser. Learning a lot with it! (even if its too advanced for my current c# level lol)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 17:08:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/wpf-app-with-api-key-not-working/m-p/1516806#M12945</guid>
      <dc:creator>papillon2k2</dc:creator>
      <dc:date>2024-08-08T17:08:57Z</dc:date>
    </item>
  </channel>
</rss>

