Link to home
Start Free TrialLog in
Avatar of ndb
ndb

asked on

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.
Avatar of chris_a
chris_a

Msvbvm50.dll has this version on my PC 05.00.4319 (SP2), I have applied SP3 also!
Avatar of ndb

ASKER

I also have version 05.00.4319 (SP2).
ndb,

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




Avatar of ndb

ASKER

There is only one copy of Msvbvm50.dll on my computer.
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.
Avatar of ndb

ASKER

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.
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.
Avatar of ndb

ASKER

I've installed IE4 on my computer. Thanks anyway.
ASKER CERTIFIED SOLUTION
Avatar of zsi
zsi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ndb

ASKER

Thanks very much. It works!