Link to home
Start Free TrialLog in
Avatar of ELSJE
ELSJE

asked on

Problems with user control

I did some changes in a user control that is being used in my proyect. When I run the project everything is fine.
However when I install the programme after using the package and deployment wizard I get the following message: " Failed to activate VB user control. This control may be incompatible with your application. Make sure you are using the version of the control that was provided with your application"

When I run the package and deployment wizard I get also de message that the dependency info is not found for the user dll
What can I do so that the new version of the control is being included when the programme is installed.

Thanks

Els
ASKER CERTIFIED SOLUTION
Avatar of CJ_S
CJ_S
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dave_Greene
Dave_Greene

Is the control housed externally (in an OCX)? or is it within your project?
What Control OCX?
Avatar of ELSJE

ASKER

For Dave: the control is part of a proyect group but I compiled it in an ocx

For Mikesun : just a simple navigationbar

For CJS. I found what you are referring to, I am trying out. The thing is that I didn't understand what was wrong and that I compiled several times..... Frankly I don't know anymore what version I am at, but I keep on trying.

thanks for all your help

els
Avatar of Ark
Hi
This occure because you used Project compatibility option when compiling ocx. This mean that every time you recompile ocx, you get new version of ocx which is compatible only with current project, and you can not use older/newer versions with this project.
Unregister your control (regsvr32 /u yourocx.ocx)
Set "Binary compatibility" flag in Project options
Recompile ocx
Register it.
Now all changes will be store in registry under same key and you won't get this error.

Cheers