Geometry Server projection error

Discussion created by sholyoak on Apr 10, 2012
Latest reply on Apr 14, 2012 by
It seems really simple, yet I keep getting an error when trying to project a point. 

function projectToLatLong(evt) {
    gsvc = new esri.tasks.GeometryService("");

    var outSR = new esri.SpatialReference({ wkid: 4326 });
    pt = evt.mapPoint;
    gsvc.project([pt], outSR, function (projectedPoints) {
        return projectedPoints[0];
    }, function (e) { console.log(e.message); });

pt is a valid esri.geometry.Point, in the 2276 spatial reference.  The error I get is "projectedPoints is not defined".  I've tried it with my own internal geometry service, and ESRI's, and I always get the same error.  I've tried using the web based REST api for each of those two services, and both project the geometry properly.  My error callback doesn't write anything to the console either.  What's going on?  Thanks.