Click to See Complete Forum and Search --> : runtime error 374


yogi7
June 20th, 2001, 07:17 PM
I am distributing my VB 6.0 application.I use ADO using Jet 4.0 to connect to Access 2000 database.
I am using Installshield Professional 6.3 for this purpose.

When I try to run the application on target machine, i get error.

runtime error 374 saying
"Failed to activate control 'VB.UserControl'.
This control may be incompatible with your application.
Make sure you are using the version of the control that
was provided with your application"


What could have gone wrong?

Any help is highly appreciated.

sead
June 21st, 2001, 05:04 AM
Just a guess...
Check if the version of specific control on your target machine is the same as the version you have on your machine where you did all the work. If not, try to install appropriate VB-runtime files, I think that it should work fine with the vbrun60.exe (see http://support.microsoft.com/support/kb/articles/q192/4/61.asp for more info). Consider to include this file in your depl.package.

Keep in mind that I'm a beginner, so I may be WRONG . . .
hth

Sead

yogi7
June 21st, 2001, 12:27 PM
Thanks but did not help.
I still get the same error.

obiwan444
June 21st, 2001, 03:54 PM
Are you sure that the latest version of your control is registered on the non-development machine ? You can use this utility to register/unregister ActiveX controls:

http://www.mvps.org/ccrp/download/cooltools/ccrpregutil120.zip