laptop and a wrench

Erro

Getting an 'Access Denied' error when trying to use SaveToString function.

Última Publicação: August 25, 2014 ArcGIS Server (.NET)
Número de ID do Erro NIM055634
EnviadoMarch 23, 2010
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Server (.NET)
Versão encontrada9.3.1
Idioma do programaC#
StatusKnown Limit

Informações Adicionais

10.1 was the last release of the .NET WebADF technology. Client APIs (JavaScript/Flex/Silverlight) are recommended for web application development.

Solução Provisória

Copy the geometry object to a new geometry object.Use the following code: public string SerializeGeometry(IGeometry geom) { XMLSerializer xs = new XMLSerializer(); string xString; IPointCollection oldpnts = (IPointCollection)geom; IPointCollection newpnts = new PolygonClass(); for (int i = 0; i < (oldpnts.PointCount-1); i++ ) { object beforeObject = (System.Object)System.Reflection.Missing.Value; object afterObject = (System.Object)System.Reflection.Missing.Value; IPoint pnt = oldpnts.get_Point(i); newpnts.AddPoint(pnt, ref beforeObject, ref afterObject); } //Converting to XML xString = xs.SaveToString(newpnts, null, null); return xString; }

Etapas para Reproduzir

ID do Erro: NIM055634

Software:

  • ArcGIS Server (.NET)

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