I have a VB6 DLL, which I am referencing in VB.NET, I am calling a function in it. It works fine in development environment, but not in the production environment.
Error :
Method not found: ‘Boolean MyUtils._MyUtils.LoadMyObjectRecords(ADODB.Stream ByRef, System.Array ByRef)’.
Any ideas on how can I fix this?
Do you have binary compatibility set?
Every time you compile a COM component created using VB6, a new GUID is created for the component. GUID’s and CLSID’s are the ones that identify a COM component from the registry. To avoid this binary compatibility is necessary. Read this MSDN blog for details.