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();
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.