Feature to Point with C# does not work?

Discussion created by kencoc on Apr 23, 2012
Latest reply on Apr 23, 2012 by nahmed-esristaff

We are creating an app for data processing using C# with ESRI.ArcGIS.Geoprocessor, ESRI.ArcGIS.Geoprocessing.
We successfully in most of the geoprocessing tools such as spatial join....

But not about to create the FeatureToPoint. Here is my code:


                    ESRI.ArcGIS.DataManagementTools.FeatureToPoint fp = new FeatureToPoint();                   
                    fp.in_features = "C:/Glacier/data/gowan.gdb/Asset_1";
                    fp.out_feature_class = "C:/Glacier/data/gowan.gdb/Asset";

                   Geoprocessor GP = new Geoprocessor();
                  GP.OverwriteOutput = true;
                  GP.Execute(fp, null);

I got error.

Please Help!