Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 488
  • Last Modified:

Wrong version of runtime DLL

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
ndb
Asked:
ndb
1 Solution
 
chris_aCommented:
Msvbvm50.dll has this version on my PC 05.00.4319 (SP2), I have applied SP3 also!
0
 
ndbAuthor Commented:
I also have version 05.00.4319 (SP2).
0
 
zsiCommented:
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
ndbAuthor Commented:
There is only one copy of Msvbvm50.dll on my computer.
0
 
flivaudaCommented:
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
 
ndbAuthor Commented:
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
 
yronnenCommented:
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
 
ndbAuthor Commented:
I've installed IE4 on my computer. Thanks anyway.
0
 
zsiCommented:
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
 
ndbAuthor Commented:
Thanks very much. It works!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now