Bug 40335 - Maps display "Warning: MapServicetoken not specified" even when it is on UWP Forms 2.2.0 Pre-2
Summary: Maps display "Warning: MapServicetoken not specified" even when it is on UWP ...
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.2.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-04-13 09:48 UTC by FieldstrikeMobile
Modified: 2016-04-18 14:53 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description FieldstrikeMobile 2016-04-13 09:48:39 UTC
Here is my main page:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
  <maps:Map x:Name="map"  Grid.ColumnSpan="3"/>

and if you run the application you get the following error:

Value cannot be null.
Object reference not set to an instance of an object.
   at System.StubHelpers.HStringMarshaler.ConvertToNativeReference(String managed, HSTRING_HEADER* hstringHeader)
   at Windows.UI.Xaml.Controls.Maps.MapControl.put_MapServiceToken(String value)
   at Xamarin.Forms.Maps.UWP.MapRenderer.<OnElementChanged>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
   at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore()
Comment 1 FieldstrikeMobile 2016-04-13 09:53:52 UTC
Ok so it does work I had to call:


But I still got

"Warning: Map Service token not specified" under my map.

Is that normal?
Comment 2 FieldstrikeMobile 2016-04-18 14:53:05 UTC
This is due to my mistake not realising it was using Bing maps, instead I presumed it was using google maps and provided my google API key