views:

69

answers:

4

Hi

I have VB6 Dll which I am referencing in vb.net ,I am calling the following function in it. It working fine in developemnt environment but not in deployement environment.

Error :

Method not found: 'Boolean MyUtils._MyUtils.LoadMyObjectRecords(ADODB.Stream ByRef, System.Array ByRef)'.

waiting for your valuable thoughts

Thank you

A: 

Do you have definitely have the same version of the DLL installed in your two environments?

MarkJ
Yes, I have same version at both environment
Yes , I have referring the DLL from the same location for both development and deployment setup
A: 

Is MDAC (Microsoft Data Access Components) installed with the same version in the deployment environment as in the dev environment?

Latest version from MS is 2.8, IIRC: http://www.microsoft.com/downloads/details.aspx?FamilyID=6c050fe3-c795-4b7d-b037-185d0506396c&displaylang=en

Paul Smith
A: 

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.

CVD
A: 

I almost hate to ask this, but is the COM DLL registered on the deployed machine?

Beaner