user1179317
user1179317

Reputation: 2913

VB6 app 'Run as administrator' issue

I have a vb6 application that runs fine when double clicking the .exe. When I right click the .exe and select 'run as administrator' (on a Windows 7 machine), I get an error: "Run-time error 429. ActiveX component cant create object"

What dll/com is missing?

Upvotes: 0

Views: 1120

Answers (2)

Luciano
Luciano

Reputation: 234

Have the same problem and in my case I solved in this way:

  • reference global system DLLs only from C:\Windows\SysWOW64 (ex. msxml6.dll)
  • run VB6 IDE as Administrator and compile your program

Upvotes: 0

Bob77
Bob77

Reputation: 13267

This seems pretty clear.

One or more DLLs and OCXs you are using was not properly installed and registered. Most likely some of them have been virtualized, either in the filesystem and/or the registry. They can only be seen by that one user when running under its standard-user context because the admin context doesn't have virtualization applied. Log on as a second user and you'll see the same failure.

Installation needs to run under TrustedInstaller, or at least elevated. That's the only way libraries can be placed and registered globally as they need to be.

Upvotes: 3

Related Questions