For Programmers: Free Programming Magazines  


Home > Archive > C# > June 2006 > Returning Recordset from VB6 object to .Net









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Returning Recordset from VB6 object to .Net
Tobester

2006-06-06, 8:04 am

Hi

I am having problems calling a method in a vb6 object that returns a
recordset.


Everything was working fine until I added the interop dlls for the vb6
objects into the GAC. Before this, I simply had references to the com
objects and let .Net handle everything else. I changed this because I
am using the same vb6 objects in several places.


Now, I can call methods on the vb6 objects that returns bools etc but
cannot call a method that returns a recordset. The exception I get is:


System.IO.FileLoadException: The located assembly's manifest definition

with name 'Interop.ADODB' does not match the assembly reference.
File name: "Interop.ADODB"


I know that this is the exception for version no. problems, but I am
referencing the same ADO dll (2.7) as the vb6 objects. At present, the
ADODB dll is not GACed and I use a reference to the COM object.


Any ideas?


Toby

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com