解决【Unable to find the requested .Net Framework Data Provider. It may not be installed.】错误...
生活随笔
收集整理的這篇文章主要介紹了
解决【Unable to find the requested .Net Framework Data Provider. It may not be installed.】错误...
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
某項目中使用了MYSQL+ ENTITY來做數據訪問層。 本地環境運行正常,但在服務器上運行時報出【
Unable to find the requested .Net Framework Data Provider.? It may not be installed.】的錯誤信息。經核查在項目引用時 設置以下程序集的屬性 將【復制本地】設置為【TRUE】
MySQL.Data.dll,
MySQL.Web.dll,
MySQL.Data.Entity.dll
System.Data.Entity.dll
同時在配置文件中 添加以下節點即可
<system.data> <DbProviderFactories> <clear /> <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.4.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" /> </DbProviderFactories> </system.data>
?
轉載于:https://www.cnblogs.com/MKOne/p/5795196.html
總結
以上是生活随笔為你收集整理的解决【Unable to find the requested .Net Framework Data Provider. It may not be installed.】错误...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Tomcat 之 启动tomcat时 错
- 下一篇: Tengine+LUA+Nginx-Gr