Aunthentication issue with KML layer support

06-19-2017 08:41 AM
New Contributor

Hi everyone,

We are using ArcGIS SDK to add KML layers on map and have encountered a weird issue after the Kml layer is added. In the case when KML layer has href elements which are pointing to resources outside the internal network, the credentials cache is being cleared and all of web service requests after that has authorization issues with the exception "The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate,NTLM'. BaseException Message: The remote server returned an error: (401) Unauthorized."

Basically, adding KML layer is removing authorization headers of our WCF calls causing issues.

Accessing KML layer without href elements works fine without any issue. We are using ESRI.ArcGIS.Client.Toolkit.DataSources.KmlLayer to access the layer.

Does someone have any suggestions ?

Thank you.

0 Kudos
0 Replies