MySQL Entity Framework Error - The specified store provider cannot be found in the configuration, or is not valid

前端 未结 5 458
没有蜡笔的小新
没有蜡笔的小新 2020-12-03 03:39

I have written an assembly in C# to perform all data access for a MySQL database. I have successfully used the assembly (a compiled dll) in my C# winform desktop application

5条回答
  •  旧巷少年郎
    2020-12-03 04:35

    But it only works on PCs that have had the "MySQL Connector Net 6.4.4" installed.

    Does it mean that you are trying to run your code on machine where the provider is not installed? In such case you must also register the provider in your configuration file because installation adds it to machine.config and if you didn't install it the provider is currently not registered.

    Try to add this to your web.config file:

    
      
        
      
    
    

提交回复
热议问题