Furqan Misarwala
Furqan Misarwala

Reputation: 1891

ActiveX component can't create an object

I am getting error,

ActiveX component can't create object.

Actually I have VB6 DLLs where business logic resides and I am calling that DLL function in my VB.NET application, all DLLs are dependent on other DLLs. I am getting the error from one of the DLLs

Any ideas?

Upvotes: 0

Views: 7311

Answers (4)

Kris Erickson
Kris Erickson

Reputation: 33834

Process Monitor will definately help find the missing DLL, but frequently the task can be achieved more quickly with Dependency Walker.

Upvotes: 0

Otávio Décio
Otávio Décio

Reputation: 74260

Usually that error points to a COM dll that is not registered. You need to look at the chain of calls and find out which COM components you need and make sure they are available. Process Monitor (from sysinternals) may help you find it when it reads from the registry and can't find it.

Upvotes: 5

CMH
CMH

Reputation: 222

Four common causes are:

1. You do not have a required TLB or ActiveX DLL/OCX file
2. A TLB or ActiveX DLL/OCX needed by the project is present but not registered on your system
3. The VB runtimes are an earlier version than the one you need to run the project
4. A required TLB or ActiveX DLL/OCX file is corrupt

Do you have access to the troublesome DLL source code?

Upvotes: 1

DannykPowell
DannykPowell

Reputation: 1227

Also check permissions. The user account that the vb.net application is running under will need permissions to be able to create the vb6 dll

Upvotes: 0

Related Questions