Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

migrating to 10.1 - Error System.Runtime.InteropServices.COMException (0x80004005)

$
0
0
Hi,

I'm trying to migrate code from arcgis 10.0 to 10.1 The last line of that code "pGp.Execute("Append_management", oParameters, Nothing)" generates a
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.

Someone could tell me why please? Thanks.

HTML Code:

            Dim oParameters As IVariantArray = New VarArray
            Dim pGp As ESRI.ArcGIS.Geoprocessor.Geoprocessor = New ESRI.ArcGIS.Geoprocessor.Geoprocessor()
            '
            'Setting parameters list
            oParameters.RemoveAll()
            oParameters.Add(sSrcFullName1)  ' <in_path>
            oParameters.Add(sMergedFullName) ' <out_path> 
            oParameters.Add("NO_TEST")      ' <keyword>
            '
            Tools.DisplayMessage("Append the Shape file: " & sSrcShortName1 & " to: " & sMergedShortName)
            Tools.DisplayMessage(" ")
            pGp.Execute("Append_management", oParameters, Nothing)

Error in MergingShapeFiles(): System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at ESRI.ArcGIS.Geoprocessing.GeoProcessorClass.Execute(String Name, IVariantArray ipValues, ITrackCancel pTrackCancel)

Viewing all articles
Browse latest Browse all 1374

Trending Articles