The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.The remote certificate is invalid according to the validation procedure.
System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
MobileService mobileService = new MobileService(); mobileService.Url = "https://server:443/arcgis/services/mobileservicename/MapServer/MobileServer" mobileService.CacheStoragePath = @C:\temp\MapCache; System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; //perhaps some token credentials mobileService.Open();
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.