laptop and a wrench

Error

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

Última publicación: August 25, 2014 ArcGIS Server (.NET)
Número de ID del error NIM055634
EnviadoMarch 23, 2010
Última modificaciónJune 5, 2024
Relacionado conArcGIS Server (.NET)
Versión encontrada9.3.1
Lenguaje del programaC#
EstadoKnown Limit

Información adicional

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

Solución alternativa

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; }

Pasos para reproducir

ID del error: NIM055634

Software:

  • ArcGIS Server (.NET)

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga