Results 1 to 2 of 2

Thread: [RESOLVED] Upgrade VB6 to VB.NET - new pc, problem with libraries - msdatasrc.DataSource require

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2013
    Posts
    134

    Resolved [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
    Last edited by AndyLD; May 8th, 2013 at 05:16 AM.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Apr 2013
    Posts
    134

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width