Problem with DLL in Windows 2003
Hi,
I have a component(dll) that calls another component(dll), but i am getting the error "429 - cannot create object" when i call a method. For Example:
In the DLL that calls another DLL
VB Code:
Implements ObjectControl
Private objContext As ObjectContext
Public Const objNotaFiscal As String = "SynchroBusiness.cNotaFiscal"
Dim oINotaFiscal As INotaFiscal
Set oINotaFiscal = objContext.CreateInstance(objNotaFiscal) [COLOR=Red]'the error occurs here[/COLOR]
Call oINotaFiscal.CalculateTaxes(SendMsg, replyMsg, ErrorMsg)
SynchroBusiness.dll is installed in COM+
This error just occurs in Windows 2003.
In Windows 2000 the components are working fine.
Can anyone help?
Thanks
Roberto
Re: Problem with DLL in Windows 2003
objContext hasn't been instanciated....
-tg
Re: Problem with DLL in Windows 2003
ok... but... why is it working in Windows 2000?
if I put
VB Code:
Set objContext = New ObjectContext
occurs the Compile Error "Invalid use of New keyword"
Re: Problem with DLL in Windows 2003
I have encountered a similar issue. I have created a COM dll in VB6. It works fine in XP, however on Windows Server 2003 I receive "ActiveX component can't create object" when trying to instantiate it.
In a VB6 .exe to test the .dll, I have tried using:
VB Code:
Dim myDLL As Object
Set myDLL = New My_COM_Security.Dim_Sec
and
VB Code:
Dim myDLL As New My_COM_Security.Dim_Sec
Both methods to instantiate the .dll return the same error. The VB6 .dll is a simple 19 line function that calls a VB.NET .dll exposed to COM. I can instantiate the .NET .dll just fine from the VB6 .exe and know that it is simply an issue of not being able to instantiate the VB6 .dll.