解决【Unable to find the requested .Net Framework Data Provider. It may not be installed.】错误...
某項(xiàng)目中使用了MYSQL+ ENTITY來(lái)做數(shù)據(jù)訪問(wèn)層。 本地環(huán)境運(yùn)行正常,但在服務(wù)器上運(yùn)行時(shí)報(bào)出【
Unable to find the requested .Net Framework Data Provider.? It may not be installed.】的錯(cuò)誤信息。經(jīng)核查在項(xiàng)目引用時(shí) 設(shè)置以下程序集的屬性 將【復(fù)制本地】設(shè)置為【TRUE】
MySQL.Data.dll,
MySQL.Web.dll,
MySQL.Data.Entity.dll
System.Data.Entity.dll
同時(shí)在配置文件中 添加以下節(jié)點(diǎn)即可
<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>
?
轉(zhuǎn)載于:https://www.cnblogs.com/MKOne/p/5795196.html
總結(jié)
以上是生活随笔為你收集整理的解决【Unable to find the requested .Net Framework Data Provider. It may not be installed.】错误...的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Tomcat 之 启动tomcat时 错
- 下一篇: XML文件中的CDATA的使用.