AnsweredAssumed Answered

Has anyone connected to a secure site using TLS 1.2?

Question asked by iracunning on Mar 31, 2017

I am attempting to instantiate a simple ServiceFeatureLayer in code but can’t seem to get a site using secure http and tls 1.2 to work.  I get the following error whenever it attempts to create the object.

 

System.Net.WebException: Error: SecureChannelFailure (The authentication or decryption has failed.)

 

I am using the ArcGIS runtime SDK with Xamarin and can get my app to work perfectly in every other scenario except TLS 1.2.  Does anyone know how to work with TLS 1.2.

 

Below is the code snippet if it helps.

 

var svcFeatureTable = new ServiceFeatureTable(new Uri(url));

await svcFeatureTable.LoadAsync();

 

if (svcFeatureTable.LoadStatus == Esri.ArcGISRuntime.LoadStatus.Loaded)
{
// create a feature layer from the table
var featureLayer = new Esri.ArcGISRuntime.Mapping.FeatureLayer(svcFeatureTable);

// add the feature layer to the map
MyMapView.Map.OperationalLayers.Add(featureLayer);
}

 

Thank You.

Outcomes