MySql.Data.dll missing

7 posts, 0 answers
  1. Markus
    Markus avatar
    42 posts
    Member since:
    Nov 2012

    Posted 13 Nov 2014 Link to this post

    Hi,
    i have created a database schema in my Mysql database.
    Now I want get the classes from that database. So I create a new data access class library.
    I logged into my database and select the schema. On the next screen where I can select the tables i got an error:
    Could not load file or assembly 'MySql.Data, Version=6.6.6.0,...' 
    I have installed the latest .Net MySqlConnector. Added the dll manually to my project and added it via NuGet.
    I use C# and wpf in my app.config I have:

    <system.data>
        <DbProviderFactories>
          <remove invariant="MySql.Data.MySqlClient" />
          <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
        </DbProviderFactories>
      </system.data>

    Is it possible to reference the newer version of mysql.data.dll?


    Regards Markus
  2. Ralph Waldenmaier
    Admin
    Ralph Waldenmaier avatar
    202 posts

    Posted 14 Nov 2014 Link to this post

    Hi Markus,
    Based on the provided information I was trying to reproduce the reported behavior. Though without being able to do so.
    Can you please check if you have the respective DbProviderFactories entry in your machine.config? This is needed when using the Visual Designer to obtain the schema information.
    During runtime you can nevertheless use the version provided via the nuget package.

    I hope this information is helpful for you.
    Do not hesitate to contact us again in case you have any other question.

    Regards,
    Ralph Waldenmaier
    Telerik
     
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
     
  3. DevCraft banner
  4. Jon
    Jon avatar
    2 posts
    Member since:
    Dec 2014

    Posted 21 Dec 2014 in reply to Ralph Waldenmaier Link to this post

    I have this in my machine.config:

    <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />

    but i encounter the same problem.
  5. Ralph Waldenmaier
    Admin
    Ralph Waldenmaier avatar
    202 posts

    Posted 23 Dec 2014 Link to this post

    Hello Jon,
    Can you please provide more details about your setup?

    - What Visual Studio are you using?
    - What version of Telerik Data Access are you using?
    - What MySQL drivers are installed on your system?
    - What did you do to receive an error?

    I am looking forward to hearing from you and getting this solved with you.

    Regards,
    Ralph Waldenmaier
    Telerik
     
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
     
  6. Jon
    Jon avatar
    2 posts
    Member since:
    Dec 2014

    Posted 23 Dec 2014 in reply to Ralph Waldenmaier Link to this post

    Latest version of Visual Studio 2013 community edition
    Latest Telerik DA
    Latest Mysql 64bit for Win

    I try to setup a new Domain Model.
  7. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 25 Dec 2014 Link to this post

    Hello Jon,

    Thank you for the additional information.

    On our side, we setup a machine that corresponds to the provided description, and tested the creation of a new domain model. During this process we created a video with the result. You can find it attached to the post. The outcome is that the model was successfully generated, without any errors. Does the video demonstrate something different than the workflow you do? I there a chance that Visual Studio 2013 Community was installed after the driver was installed (if so, you may need to re-run the installer on your side)?

    I am looking forward to your feedback.


    Regards,
    Doroteya
    Telerik
     
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
     
  8. Markus
    Markus avatar
    42 posts
    Member since:
    Nov 2012

    Posted 11 Feb 2015 Link to this post

    Hi,
    after I have added:

    <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />

    to the machine.config file I reinstalled the MySql .Net Provider and now everything is alright.

    Regards Markus
Back to Top
DevCraft banner