| 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
|