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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Is the control housed externally (in an OCX)? or is it within your project?
What Control OCX?
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
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
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
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