Select to view content in your preferred language

Not be able to display map on .net MAUI even with correct API Key

419
2
01-01-2025 10:31 AM
Labels (1)
DienVu
by
New Contributor

Hi, i download the solution from Display a map (.NET MAUI) | ArcGIS Maps SDK for .NET | Esri Developer & get the API key with Basemap styles service then replace it in the MauiProgram follow all the step by step.

When run, no map showing up except a small Pwered by Esri at the bottom of the MAUI app (for Windows).

I've been playing around and around by manually create another project step by step but all FAIL, the map is not showing at all ! Any suggestion is much appreciate !

Tags (1)
0 Kudos
2 Replies
GKmieliauskas
Esri Regular Contributor

Hi,

I have downloaded the solution from here. Link is used from your page ("Download solution"). Replaced API key with my own and it works on Windows.

0 Kudos
ThadTilton
Esri Contributor

Hi Dien,

Please check your Visual Studio Output window when running your app. If the problem is with the API key, you'll see something like this in the debug output:

ArcGIS Maps SDK: The API key 'xyz' is invalid, expired or does not have access to the resource.
- 'https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/webmaps/arcgis/topographic'.
Please visit https://developers.arcgis.com/api-keys to configure the API key to access the resource, or to create a new API key.
ArcGIS Maps SDK: Load Error: Basemap
Esri.ArcGISRuntime.Http.ArcGISWebException
The provided APIKey is invalid, expired or does not have access to the resource.