dbTalk Databases Forums  

error

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss error in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
paulhux174@hotmail.com
 
Posts: n/a

Default error - 12-13-2006 , 12:36 AM






I'm running a dts task from a converted dts package in vb.net2.
I get an COM error.

Dim oTask As DTS.Task
'Dim oLookup As DTS.Lookup

Dim oCustomTask1 As DTS.DataPumpTask2
oTask = CType(goPackage,
DTS.Package).Tasks.New("DTSDataPumpTask")
oCustomTask1 = CType(oTask.CustomTask, DTS.DataPumpTask)
' then ERRORS
{"Unable to cast COM object of type 'System.__ComObject' to interface
type 'DTS.CustomTask'. This operation failed because the QueryInterface
call on the COM component for the interface with IID
'{10020904-EB1C-11CF-AE6E-00AA004A34D5}' failed due to the following
error: No such interface supported (Exception from HRESULT: 0x80004002
(E_NOINTERFACE))."} DTS.CustomTask

Any ideas please


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.