I hope I am placing my question in right place. I could not find closer tags.
I am setting up a new 64 bit system to have everything from my old 32 bit system on it.
I used vb6 to create an activeX dll test project to make a testProj.dll, package it and install it by running the setup.exe of the package as administrator.
My test project is called testProj having a class called testClass which has a simple sub called testSub as follows:
Public Sub testSub()
Response.Write “--------- testSub is called ----------“
End Sub
The testSub simply prints a message to confirm that the sub was called.
I successfully install / register the testProj.dll and on an asp page I successfully call the Server.CreateObject(“testProj.testClass”) to instantiate the testProj for calling its testSub().
On Error Resume Next
Dim testObj
Set testObj = Server.CreateObject(“testProj.testClass”)
if err.number <> 0 then
Response.write "1----------err.number = " & err.number & "--------- err.description = " & err.description
err.clear
end if
Call testObj.testSub()
if err.number <> 0 then
Response.write "2----------err.number = " & err.number & "--------- err.description = " & err.description
err.clear
end if
Set testObj = nothing
But the code generates error with no description:
2----------err.number = -2147164123 ---------err. description =
Also if I comment out the 'Call testObj.testSub()' I do not get any error. Meaning that the source of the error is the call to testSub().
I run everything as administrator so I do not expect any permission issue. Could an expert tell me what the problem might be?
Thank you
0x8004E025
in the Windows API this refers toCOM+ Activation failed because an initialization function failed. Check the event log for more information.
. So your COM DLL is failing to initialise with the COM+ subsystem. The duplicate as previously stated provides an abundance of information to help diagnose these types of problems. – user692942Response
is? That is a Classic ASP specific object which in a VB6 DLL won't exist hence as @jww points out leads to an Object Required error because it doesn't know whatResponse
is. – user692942