legend?f=json : HTTP 500

Discussion created by geos_rfleet on Aug 6, 2012
Latest reply on Aug 7, 2012 by geos_rfleet
(ArcGIS Server Enterprise Standard for .NET v10 SP5)


Whenever I try to retrieve a legend for one of my map services with f=json (i.e. format = JSON) it crashes and returns:

  "error" : 
    "code" : 500, 
    "message" : "An unexpected error occurred processing the request.", 
    "details" : []

Are there any known scenarios that can cause this?

All the other services are fine and I can't see anything odd in the map document in Desktop, also nothing reported in the logs.

Also, calling legend with no arguments (returns the HTML page) works fine.

Any thoughts would be much appreciated :)