Re: "Object Reference not set to an instance of an object" when Adding Connection - MYSQL -> Visual Studio 2010
Posted by: Fernando Gonzalez Sanchez
Date: March 07, 2014 11:59AM

Hi,

First of all, which versions of the product are you using? MySql for Visual Studio? Connector/NET?

There's a known issue, that when upgrading from Windows 8 to Windows 8.1, MySql for Visual Studio & Connector/NET need to be reinstalled.

If that is not the case, this sounds like machine.config does not have the provider registered.

Please check the provider is there, msut be a chunk of XML like this

<system.data>
<DbProviderFactories>
....
<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.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
</DbProviderFactories>
</system.data>


Thanks

*** My opinions do not necessarily reflect the opinions of my employeer ***
Fernando Gonzalez Sanchez
Sr. Software Engineer
MySql Connector/NET Team
Oracle Corporation

Options: ReplyQuote


Subject
Written By
Posted
Re: "Object Reference not set to an instance of an object" when Adding Connection - MYSQL -> Visual Studio 2010
March 07, 2014 11:59AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.