
07/07/2008, 11:26
|
| | Fecha de Ingreso: junio-2007 Ubicación: Mérida, Yucatán, México
Mensajes: 94
Antigüedad: 17 años, 8 meses Puntos: 1 | |
Respuesta: Funciona bien en el depurador, pero ya publicado no funciona!! [URGENTE] Este es el error: Cita: System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at Microsoft.VisualBasic.CompilerServices.LateBinding .InternalLateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack, Boolean IgnoreReturn)
at Microsoft.VisualBasic.CompilerServices.NewLateBind ing.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn) at SIRETIH.Geoprocessor.Intersect.Process() in C:\Projects\SIRETIHGeoproccesor\SIRETIHGeoprocceso r\Main.vb:line 15
y este esl el codigo de la funcion Process() Cita: Public Function Process() As Boolean
Dim gp As Object = CreateObject("esriGeoprocessing.GPDispatch.1")
' Load required toolboxes...
gp.AddToolbox("C:/Archivos de programa/ArcGIS/ArcToolbox/Toolboxes/Analysis Tools.tbx")
Dim siretih_ESRI_WMA_Lineas_Intersect As String = "C:\tmp\intersect.shp"
Try
gp.Intersect_analysis("'Database Connections\esri_wma_siretih.sde\GEO_PENINSULAR.DB O.Geo_peninsular\geo_peninsular.DBO.Lineas' #;'Database Connections\esri_wma_siretih.sde\geosiretih.DBO.si retih\geosiretih.DBO.pronostico_vientos' #", siretih_ESRI_WMA_Lineas_Intersect, "ALL", "", "INPUT")
Catch ex As Exception
ERR_MSG = ex.ToString()
Return False
gp = Nothing
End Try
Return True
End Function
Última edición por carloshuchim; 07/07/2008 a las 11:28
Razón: agregar más info
|