Solved

Problems with user control

Posted on 2001-08-01
5
335 Views
Last Modified: 2012-05-04
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
0
Comment
Question by:ELSJE
5 Comments
 
LVL 22

Accepted Solution

by:
CJ_S earned 100 total points
Comment Utility
When you are in Visual Basic, in the usercontrol project go to the properties of your project (Project -> Properties). Then on some tab, you can set the version information. Set it to a new version (for example, version 2.0.0). Now recompile and package.

regards,
CJ
0
 
LVL 8

Expert Comment

by:Dave_Greene
Comment Utility
Is the control housed externally (in an OCX)? or is it within your project?
0
 

Expert Comment

by:Mikesun
Comment Utility
What Control OCX?
0
 

Author Comment

by:ELSJE
Comment Utility
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
0
 
LVL 27

Expert Comment

by:Ark
Comment Utility
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
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now