Select to view content in your preferred language

PrintTask: Unable to connect to Microsoft Bing service

2999
3
04-22-2013 03:21 PM
JaredA
by
New Contributor
I'm using PrintTask and PrintParameters to create a PDF of my map services. Recently the PrintTask fails with this error "Unable to connect to Microsoft Bing service. Authentication failed".


Any suggestions on how to get the PrintTask / PrintParameters to authenticate the Microsoft Bing Server?
0 Kudos
3 Replies
ChrisSaylor
Emerging Contributor
I had the exact same problem.  Monitoring web traffic showed that it was attempting to connect to serverapi.arcgisonline.com/veadaptor, and receiving an authentication error from that as well.  Pasting the JSON created by the PrintTask into the rest endpoint fails, i.e.

   "operationalLayers":[
      {
         "opacity":1,
         "visibility":true,
         "type":"BingMapsRoad",
      },

However, if you modify this and include your Bing key

   "operationalLayers":[
      {
         "opacity":1,
         "visibility":true,
         "type":"BingMapsRoad",
         "key":"<insert key here>"
      },

it works fine and the map is exported correctly.  I talked to ESRI support and they said that Bing authentication procedures is changing rather quickly.  Unfortunately, right now the JSON created by the PrintTask doesn't include the key.  They logged it as a bug [#NIM091676  Bing layer JSON needs to include key and made it sound like this is a pretty time-sensitive fix and that it should be included in the next release.
0 Kudos
StevenHumphries1
Deactivated User
Yes. Same problem here too. Would be pleased to hear if there is a work around. A flex viewer using the same export service works ok.
0 Kudos
StevenHumphries1
Deactivated User
Also discovered that the Silverlight printing tool that was working until recently continues to work when connected to one of ESRI's test servers rather than my own server. Does this suggest that its a local server problem? Sorry couldn't find a record of the registered bug on the system. Are ESRI seeking a solution?
0 Kudos