Solved

Problems with user control

Posted on 2001-08-01
5
336 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
ID: 6340778
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
ID: 6340797
Is the control housed externally (in an OCX)? or is it within your project?
0
 

Expert Comment

by:Mikesun
ID: 6341904
What Control OCX?
0
 

Author Comment

by:ELSJE
ID: 6342160
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
ID: 6342957
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

911 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

24 Experts available now in Live!

Get 1:1 Help Now