mxd = arcpy.mapping.MapDocument(r"F:\ArcGISData\bingmap.mxd") filepath = r"F:\ArcGISData" pngName = "\BINGMAP.png" outputfile = filepath+pngName arcpy.mapping.ExportToPNG(mxd,outputfile)
ArcGIS Server 10.1+ does not support entering a Bing key anymore. What workflow are you using to access Bing? If you're using a web application, imbed the Bing key within the application.