sthambir

KML - File not found, wrong url error for correct url

Discussion created by sthambir on Apr 25, 2012
Latest reply on Apr 25, 2012 by DSwingley-esristaff
Hi,

I am trying to add a kml layer to my map. However, the control reaches onError handler and shows 'File not found. Wrong Url' error. The Url is correct and I can get back data if I use it on a IE browser.

Why should the code fail with this error? Any input is appreciated.

Our server isn't accessible from outside. If I see in developer tools where the url is appended to http://utility.arcgis.com/sharing/kml?url=myurl ==> this returns File not found error and I am sure Kml layer isn't getting loaded because of this. But, how should I fix this?

Thanks!

Outcomes