|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
COM error in vb.net2I 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 Trying to use COM from .NET is your punishment for using Visual Basic.
The Grand Master paulhux***@hotmail.com wrote: Show quoteHide quote > 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
Connection string in app.config for class library
Text Box Spell Check Re: Great Reasons Not To Learn VB.NET - PART 1 time difference Strings and Resource Files Looping Through All Tables in a SQL Server Database error handle Help!! Domain privs to run standalone .Net EXE from domain account? Integer and Long Can't maximize |
|||||||||||||||||||||||