laptop and a wrench

Erro

When using HTTPS to connect to ArcGIS Mobile services, the first request attempts to connect via port 80 (http).

Última Publicação: August 25, 2014 ArcGIS Runtime for Windows Mobile
Número de ID do Erro NIM059652
EnviadoAugust 3, 2010
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Runtime for Windows Mobile
Versão encontrada9.3.1
Sistema OperacionalWindows OS
Versão do Sistema OperacionalXP
StatusNon-Reproducible

Informações Adicionais

No Public Explanation

Solução Provisória

Use the CatalogService directly:CatalogService cs = new CatalogService(); <a href="http://System.Net" target="_blank">System.Net</a>.ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; cs.Url = @"<a href="https://server/arcgis/services" target="_blank">https://server/arcgis/services</a>"; // step 1. determine whether the arcgis server requires token bool requiretokens = cs.RequiresTokens(); // if token is required if (requiretokens) { // step 2. get the url for token server string tokenserviceurl = cs.GetTokenServiceURL(); // step 3. create a tokencredential TokenCredential tokencredential = new TokenCredential("user", "password"); // step 4. use a tokengenerator to get the token from token server TokenGenerator tokengenerator = new TokenGenerator(); string token = TokenGenerator.GenerateToken(tokenserviceurl, tokencredential); // request mobileService1.Url = "<a href="https://server/arcgis/services/Secured/RedlandsHydro/MapServer/MobileServer?token=" target="_blank">https://server/arcgis/services/Secured/RedlandsHydro/MapServer/MobileServer?token=</a>" + token; mobileService1.CacheStoragePath = @"<a href="file:C:/temp/mapcache931" target="_blank">C:\temp\mapcache931</a>"; if (mobileService1.CacheExists) mobileService1.DeleteCache(); mobileService1.Open(CacheOpenMode.Create); mobileService1.GetDataAsync(map1, false, null); }

Etapas para Reproduzir

ID do Erro: NIM059652

Software:

  • ArcGIS Runtime for Windows Mobile

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download