![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi there, I have some DTS routines which run overnight doing some calculating and some flattening of data and form a Data Warehouse Database. We are currently moving the routines from SQL7 to SQL2000 on another server. Now, one of the DTS tasks is an ActiveX Script task which calls 2 methods in a vb6 dll, and as part of the move I have rewritten the vb6 dll to a c# assembly. Unfortunately, I can no longer call the new .NET assembly, I keep getting an "ActiveX cannot create object" error. I've made my c# assembly with COM interop and can call it from a vb6 application and it runs OK, but as soon as I use 'CreateObject("WarehouseDTS.Routines")' I get the activeX error. Can anyone help? Will I have to wait for SQL2005 before I can call .NET assemblies directly (No COM Interop)? |
#3
| |||
| |||
|
|
If you have created a CCW then this should work. The error says that the CCW is not registered correctly, same error you get when a regular COM DLL is not registered correctly. Have you installed in correctly on the same machine as the DTS package is being run, remembering DTS is all client side COM itself. -- Darren Green http://www.sqldts.com "Cammie Watson" <Cammie Watson (AT) discussions (DOT) microsoft.com> wrote in message news:1CA71B76-A20E-4EC5-8CAA-F532A07BD9B2 (AT) microsoft (DOT) com... Hi there, I have some DTS routines which run overnight doing some calculating and some flattening of data and form a Data Warehouse Database. We are currently moving the routines from SQL7 to SQL2000 on another server. Now, one of the DTS tasks is an ActiveX Script task which calls 2 methods in a vb6 dll, and as part of the move I have rewritten the vb6 dll to a c# assembly. Unfortunately, I can no longer call the new .NET assembly, I keep getting an "ActiveX cannot create object" error. I've made my c# assembly with COM interop and can call it from a vb6 application and it runs OK, but as soon as I use 'CreateObject("WarehouseDTS.Routines")' I get the activeX error. Can anyone help? Will I have to wait for SQL2005 before I can call .NET assemblies directly (No COM Interop)? |
![]() |
| Thread Tools | |
| Display Modes | |
| |