We have a secure tiled map service that we wish to consume in ArcGIS Runtime 10.2.7. But when we run it, we get the following error:
Layer could not be added to Map because layer initialization failed. See InnerException for more information.
InnerException: The request was aborted: Could not create SSL/TLS secure channel.
I open the same map service using ArcGIS Online, ArcMap, JavaScript, and Quartz Runtime, they all work. Is there something I am missing?
Solved! Go to Solution.
There seems to be some issues with the SSL certification or validation of it. See this SO thread with some good tips how to handle it: c# - The request was aborted: Could not create SSL/TLS secure channel - Stack Overflow
Hi Huy,
Please can you provide more details?
- API type (WPF / Store 8.1 / Phone 8.1)
- OS (Windows 7, 8.1, 10, Phone 8.1...)
- .NET version (4.5.2, 4.6, 4.6.1...
Cheers
Mike
Hi Mike,
Here are the additional details:
API : ArcGIS Runtime for .NET 10.2.7 (WPF)
OS: Windows 7, 64bit
.NET version: 4.5
Map Service: https://extsvc.tampagov.net/arcgis/rest/services/Versaterm/VersatermCacheSP/MapServer
<Grid> <esri:MapView x:Name="MyMapView" LayerLoaded="MyMapView_LayerLoaded"> <esri:Map> <esri:ArcGISTiledMapServiceLayer ID="Basemap" ServiceUri="https://extsvc.tampagov.net/arcgis/rest/services/Versaterm/VersatermCacheSP/MapServer"/> </esri:Map> </esri:MapView> </Grid>
There seems to be some issues with the SSL certification or validation of it. See this SO thread with some good tips how to handle it: c# - The request was aborted: Could not create SSL/TLS secure channel - Stack Overflow
Thanks Morten! That appears to be the issue, I got the map to display after following the suggestions on Stack Overflow.