Error 404 "Invalid layer ID specified" while adding a layer to a map

513
0
06-20-2012 04:27 AM
AntonioFittipaldi
New Contributor
Hi all,

I'm getting this error: "NetworkError: 404 Invalid layer ID specified. - URLTOSERVER/rest/services/CTPAA1/MapServer/export?dpi=96&transparent=true&format=png8&layers=show%3A&bbox=568849.9066358025%2C5057036%2C776368.0933641975%2C5156571&bboxSR=25832&imageSR=25832&size=1351%2C648&f=image" when I try to add an ArcGISDynamicMapServiceLayer to a map. I notice that the layers parameter points to "show:", but I can't understand why (if I use a real layer id, such as "layers=0", it works). This layer contains only raster data (TIF images) and it's finally added to the map, but I get the error when I load it for the first time and when I try to show/hide it. I don't have problems while adding other layers to the map.

Why this strange behavior?

I'm using ArcGIS Server 10 SP4 and 2.6 version of JavaScript library.

Thank you so much for your support.
0 Kudos
0 Replies