laptop and a wrench

Bogue

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

Dernière publication: August 25, 2014 ArcGIS Server (.NET)
Numéro d’ID de bogue NIM055634
EnvoiMarch 23, 2010
Dernière modificationJune 5, 2024
S’applique àArcGIS Server (.NET)
Version trouvée9.3.1
Langue du programmeC#
StatutKnown Limit

Informations supplémentaires

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

Solution de contournement

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

Étapes pour reproduire

ID de bogue: NIM055634

Logiciel:

  • ArcGIS Server (.NET)

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement