Select to view content in your preferred language

Error using Bing Maps Hybrid

3146
6
04-03-2012 01:53 PM
BretRowlinson
Emerging Contributor
This was working at some point and now isn't.  I am not sure if it broke the same time that I upgraded to ArcGIS for Silverlight 1.0.1

I can create and publish a map in arcgis.com using Bing Maps Hybrid as a base layer.

When I use that map to create a map in Silverlight, I get an error on loading: 

Error initializing layer: Bing Maps Hybrid

With the details:
Credentials are either invalid or unspecified.
   at ESRI.ArcGIS.Client.Layer.OnInitializationFailed(EventArgs e)
   at ESRI.ArcGIS.Client.Layer.Initialize()
   at ESRI.ArcGIS.Client.Bing.TileLayer.imageryService_GetImageryMetadataCompleted(Object sender, GetImageryMetadataCompletedEventArgs e)
   at ESRI.ArcGIS.Client.Bing.ImageryService.ImageryServiceClient.OnGetImageryMetadataCompleted(Object state)


Also, I notice in the list of basemaps available, there are no Bing ones.

Does anyone have a fix for this? I am working on publishing a cemetery map that would pretty much requires the aerial on it for readability.

Thanks!
0 Kudos
6 Replies
DerekLaw
Esri Esteemed Contributor
Hi Bret,

As of March 31, 2012, the Bing Maps Token Service has been retired by Microsoft.

Users who want to use Bing maps will need to get their own Bing Maps key. From the ArcGIS Server help documentation:

"The Bing Maps key information is retrieved from your ArcGIS Server authorization file. If you receive a message that your key is not found or corrupt, please contact ESRI Customer Service to ensure that your authorization file is valid and includes access to Bing Maps."

Hope this helps,
0 Kudos
BretRowlinson
Emerging Contributor
Thanks for the quick reply.

What if we don't have an implementation of ArcGIS Server yet?  Is there still a way to use the Bing Maps, or is it now only available to licensed ArcGIS users?

Cheers!

Hi Bret,

As of March 31, 2012, the Bing Maps Token Service has been retired by Microsoft.

Users who want to use Bing maps will need to get their own Bing Maps key. From the ArcGIS Server help documentation:

"The Bing Maps key information is retrieved from your ArcGIS Server authorization file. If you receive a message that your key is not found or corrupt, please contact ESRI Customer Service to ensure that your authorization file is valid and includes access to Bing Maps."

Hope this helps,
0 Kudos
DerekLaw
Esri Esteemed Contributor
Hi Bret,

What if we don't have an implementation of ArcGIS Server yet?  Is there still a way to use the Bing Maps, or is it now only available to licensed ArcGIS users?


If you don't have an ArcGIS Server license, you will have to contact Microsoft directly to obtain a Bing Maps key.

FYI, please review this blog post for additional background info:
Changes to Bing Maps token key


Or, I suppose you could switch your application to use a different basemap service, like World Imagery service.

Hope this helps,
0 Kudos
BretRowlinson
Emerging Contributor
Thanks for the info, and the blog post, I had missed that and it clarified things for me.

I have obtained a Bing Maps key.

I am having trouble finding specifics on how to implement it.


I am presuming that I edit a config file in my silverlight app?

Any resources to point me in the right direction for this?

Thanks.
Hi Bret,



If you don't have an ArcGIS Server license, you will have to contact Microsoft directly to obtain a Bing Maps key.

FYI, please review this blog post for additional background info:
Changes to Bing Maps token key


Or, I suppose you could switch your application to use a different basemap service, like World Imagery service.

Hope this helps,
0 Kudos
DerekLaw
Esri Esteemed Contributor
Hi Bret,

... I have obtained a Bing Maps key. ... I am having trouble finding specifics on how to implement it.


Please see this ArcGIS Viewer for Silverlight help topic:

Application Builder settings
(look for the Bing AppID setting)

Hope this helps,
0 Kudos
BretRowlinson
Emerging Contributor
Perfect!

Thank you very much.  Quite easy when you know where to go.

It is working perfectly now.  Again, I appreciate the assistance.

bret

Hi Bret,



Please see this ArcGIS Viewer for Silverlight help topic:

Application Builder settings
(look for the Bing AppID setting)

Hope this helps,
0 Kudos