Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
insandur
Helper II
Helper II

An error occurred creating the configuration section handler for system.data: Column 'InvariantName'

An error occurred creating the configuration section handler for system.data: Column 'InvariantName' is constrained to be unique. Value 'MySql.Data.MySqlClient' is already present. (C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config line

insandur_0-1726550943417.png

 





3 REPLIES 3
EZReinert
Regular Visitor

In my case I upgraded v8.0.30 to v9.0.0 and found a duplicate entry in the machine.config file. 
Deleted the line that was related to old version.
Restarted machine.

Everything is working ok now.
Thanks.

insandur
Helper II
Helper II

An error occurred creating the configuration section handler for system.data: Column 'InvariantName' is constrained to be unique. Value 'MySql.Data.MySqlClient' is already present. (C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config line

insandur_1-1726551206544.png

 

 

 

 

 

v-yohua-msft
Community Support
Community Support

Hi, @insandur 

You can locate the machine.config file:
For 32-bit systems: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config
For 64-bit systems: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config
Then open the machine.config file in a text editor with administrative privileges. Search for the MySql.Data.MySqlClient entry under the <DbProviderFactories> section. Try to Remove or comment out the duplicate entry. Ensure that only one entry for MySql.Data.MySqlClient exists. Save the file and restart your application or service.

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.