Geometry Task Project Bug

Discussion created by julianok on Aug 10, 2011
Latest reply on Aug 11, 2011 by julianok
Hello I'm having problems using the geometry service project method.

I get the following error: "
Message: 'spatialReference' is null or not an object
Line: 48
Char: 410823
Code: 0
URI: http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.4

The code is very simple, I am just trying to project a mapPoint from projected (26911 ) UTM NAD81 Z11 to WGS84 (4326 ) using the geometry service.

// explicit SR definition for input point
var ptUTM = new esri.geometry.Point(mapPoint.x, mapPoint.y, new esri.SpatialReference({ wkid: 26911 }));
                    var outSR = new esri.SpatialReference({ wkid: 4326 });
                    var ptWGS;
                    gsvc.project(ptUTM, outSR, function (projectedPoints) {
                        ptWGS = projectedPoints[0];

Any Inputs?