none
Class not Registered Error on Visual Studio 2017 with MySQL RRS feed

  • Question

  • I am migrating my standalone VB.NET developed Windows Forms Application from SQL to MySQL and while doing that I am using an online database. Here is the scenario.

    1. Application is developed in Visual Studio 2017 VB.NET and is a Windows Forms Application.
    2. My database is hosted on Hostinger.

    Now obviously, If I want to connect to MySQL from VS, I need two components.

    1. MySQL for Visual Studio

    2. Visual Studio MySQL Connector

    And here the problem begins, I tried various versions of both components but still, I am getting the following error.

    "Class not Registered (Exception from HRESULT 0X80040154 (REGDB_E_CLASSNOTREG))" 

    Now as per online forums and questions answered here, this error occurs when software component not installed on the machine. In this case, I am using MySQL references but either MySQL connector or MySQL for VS not installed. But that's not the case. I have both of these installed.

    I tried to manually update diff version of MySQL.Data.DLL (v4.0 and v4.5) but nothing seems to solve the problem.

    I tried the same project with VS 2015 Community but still not working.

    Read different forums and tried multiple solutions. Posting question here is kind of my last resort.

    I think for this to work, specific versions of both supporting software must be installed. If anyone has tried this before, working on this or have any workarounds, Let me know.


    Wednesday, May 22, 2019 12:41 PM

Answers

All replies

  • Hi Mahadev Malkar,

    Thank you for posting here.

    This issue is more related to visual Basic and My Sql. Since our forum is discussing about usage tools in VS IDE, so we will move it to Where is the forum for...? forum to redirect it. Then you could go to appropriate forum for better support.

    Thank you for understanding.

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Thursday, May 23, 2019 9:48 AM
  • Hello,

    you should install the MySQL database with the developer components.

    If you have questions about MySQL and its installation, ask here: https://forums.mysql.com/

    Regards, Guido

    Thursday, May 23, 2019 9:54 AM
    Moderator