Solved

Wrong version of runtime DLL

Posted on 1998-05-11
10
423 Views
Last Modified: 2012-06-21
I've just installed SP3 of VB5. If I run my program in VB itself it gives no problem. If I compile it and try to run it again it says: Wrong version of runtime DLL.
0
Comment
Question by:ndb
10 Comments
 
LVL 2

Expert Comment

by:chris_a
ID: 1445738
Msvbvm50.dll has this version on my PC 05.00.4319 (SP2), I have applied SP3 also!
0
 
LVL 1

Author Comment

by:ndb
ID: 1445739
I also have version 05.00.4319 (SP2).
0
 
LVL 4

Expert Comment

by:zsi
ID: 1445740
ndb,

Check your path and make sure that you do not have any other copies of the VB runtime DLL's in your path.




0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 1

Author Comment

by:ndb
ID: 1445741
There is only one copy of Msvbvm50.dll on my computer.
0
 
LVL 1

Expert Comment

by:flivauda
ID: 1445742
do a:

c:\> del *.oca /s

on your drives and then goto regedt32
goto:
local machine
    software
         microsoft
              visual basic
                 bunch of stupid oca keys

and delete and the keys for your oca files. (be careful not to delte anything below it, if you go to fast you may delete your winnt keys)

This should fix it.  FOr some reason vb creates the stupid oca cache files but doesnt always update them and you can be referenceing the wrong version of stuff.  I have a login script that delets all my ocas everytime just avoid this problem.
0
 
LVL 1

Author Comment

by:ndb
ID: 1445743
I am sorry but this doesn't seem to work. All .oca files are removed from my harddrive and under the the vb subtree in the registry.
0
 
LVL 5

Expert Comment

by:yronnen
ID: 1445744
Have you tried installing internet explorer 3.01 and up? I know it sounds funny, but if yuo install vb (especially SP3) yuo must install ie3.01.

This may help.
0
 
LVL 1

Author Comment

by:ndb
ID: 1445745
I've installed IE4 on my computer. Thanks anyway.
0
 
LVL 4

Accepted Solution

by:
zsi earned 200 total points
ID: 1445746
That's probably part of your problem (IE4).  In what order did you install IE4 and VB5?  If you installed IE4 after VB, re-install VB
0
 
LVL 1

Author Comment

by:ndb
ID: 1445747
Thanks very much. It works!
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to skip loop 6 57
passing parameter in sql procedure 9 63
How to set the sa password in a vb6 code for sql connection 9 55
RUNRMTCMD from AS/400 12 47
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

832 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