IGeoProcessor failing on Export to CAD execute

Discussion created by Wkimrey on Jun 26, 2013
Hello all,

So, I'm trying to execute a the "Export to CAD" tool through a C# webservice.  I'm using an IGeoProcessor2 and executing like this:

IGeoProcessorResult result = gp.Execute("ExportCAD_conversion",parameters,null);

The parameters are an IVariantArray that's built out like this:

Immediately upon executing, a COMException is caught that tells me "Error HRESULT E_FAIL has been returned from a call to a COM component".

I've tried several variations on the parameters, the GeoProcessor, the outputfile, using a FeatureClass instead of a FeatureLayer, it always fails.

What's stranger is the fact that this method works when I try to do another tool.  (In this case, "Clip_analysis")  Both tools are set up and executed the same way (well, except for slightly different parameters), but one fails and the other doesn't and I can not figure out why.

Any help, tip, suggestion, comment would be greatly appreciated here.  I've been banging my head on this for almost a week now.