[RESOLVED] Upgrade VB6 to VB.NET - new pc, problem with libraries - msdatasrc.DataSource require
Hi!
I just moved my project from one pc to a new one, and I cannot solve this issue:
Code:
Error 126 Reference required to assembly 'MSDATASRC, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' containing the type 'msdatasrc.DataSource'. Add one to your project. C:\pathtoform\myForm.Designer.vb 646 9
The error line contains this:
Code:
grid.DataSource = r
with the error marked on left part.
In the project properties I have a reference to "Microsoft Data Source Interfaces for ActiveX Data Binding Type Library" called Interop.MSDATASRC.dll.
This is the only reference that I can link to the error, but obviously this is not sufficient.
The project includes also a reference to DDSharpGridOLEDB2U, which is the base class for the grid in the error rising code.
Code:
Me.grid2 = New AxDDSharpGridOLEDB2U.AxSGGrid
Re: Upgrade VB6 to VB.NET - new pc, problem with libraries - msdatasrc.DataSource req
Maybe I solved it, maybe this is not a solution but a "hack", I added manually the reference to this file:
Code:
C:\Windows\assembly\GAC\MSDATASRC\7.0.3300.0__b03f5f7f11d50a3a
and this solved the error.