
VB5 Error 50003 - Unknown Error
The 50003 error is a real pip, ain't it? It has several possible causes.
The only documented one I know about has something to do with gif files.
More often, it's caused by having mismatched/out-of-date system files.
The OLE*.DLL files are the first suspects. Check the versions on the bad
machines vs. the good ones. Try downloading OADIST.EXE from the MS
website: it doesn't install the _latest_ versions, but at least it's a
matched set!
Also watch out for Comcat.dll version 5.0. This seems to break many
systems. Going back to v4.71 generally seems to make things OK again.
VB5 ships with DAO350.DLL version 3.50.3602.0 which is used for some
database access.
If you install VB6 or Visual Interdev 6 on your machine, you will be
upgraded to version 3.51.1608.0. This version requires EXPSRV.DLL which
the earlier version does not.
If you use the VB5 application wizard it will distribute the 3.51 version
but NOT the EXPSRV.DLL file. When installed on another machine without VB6
or VI6, the DAO350.DLL is overwritten with version 3.51 but they do not get
the EXPSRV.DLL. Now they may get error 50003 for this application and the
same or other errors for many existing applications using DAO350.DLL.
Good luck: this one can be tough!
Jim Deutch
MS Dev MVP
Quote:
> I have a VB5 project with MDI forms. I am developing on NT 4.0W SP3. I
had
> the project running on Win95 and NT4.0 workstations. I spent several
weeks
> making modifications. I completed and it works fine only on my
workstation.
> When the other workstations loaded the new application, they click on a
> toolbar button to open a customer profile form, it gives the message
50003
> - Unknown Error. I have attempted some tracing, and it occurs after the
> Load command in the main form, but before the load event in the sub form.
> Does anyone have a suggestion about where to proceed?
> Thanks.