.NET MySQL Connector Conflicting DbProviderFactories

后端 未结 2 865
日久生厌
日久生厌 2020-12-14 17:46

I\'m using the .NET MySQL Connector with Entity Framework 4, and everything worked great but I wanted to package the MySQL client DLL files with my application when deployed

2条回答
  •  轮回少年
    2020-12-14 18:19

    try to add < remove invariant="MySql.Data.MySqlClient" / > in your webconfig. On your computer, you have installed the Connector for MySql and your machine.config have been modified by adding an item in the DbProviderFactories. So if you put another MySql Data Provider in your web.config, its like if you are trying to register the same thing twice.

    
        
          
          
        
    
    

提交回复
热议问题