I need to add a function of conversion from Map (mxd) to KML to my project. It seems there is not much reference on the internet. I have gotten some sample codes here: http://forums.esri.com/Thread.asp?c=159&f=1707&t=232374 I converted the codes to C#. I did not have any problems when I compiled it. But I received an error when I ran the application:
StackTrace: at ESRI.ArcGIS.Geoprocessing.GeoProcessorClass.Execute(String Name, IVariantArray ipValues, ITrackCancel pTrackCancel) at ESRI.ArcGIS.Geoprocessor.Geoprocessor.ExecuteInner(IGPProcess process, ITrackCancel trackCancel, IGeoProcessor igp, IVariantArray iva) at ESRI.ArcGIS.Geoprocessor.Geoprocessor.Execute(IGPProcess process, ITrackCancel trackCancel)
Message: Error HRESULT E_FAIL has been returned from a call to a COM component.