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();
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.