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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.