Could not create the driver from NHibernate.Driver.MySqlDataDriver
来源:互联网 发布:弹簧计算软件在线 编辑:程序博客网 时间:2024/06/06 01:03
最近使用Photon通过Nhibernate链接mysql时发生如下错误,让我很头疼
ERROR Photon.SocketServer.PeerBase [(null)] - FluentNHibernate.Cfg.FluentConfigurationException: An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail. ---> NHibernate.HibernateException: Could not create the driver from NHibernate.Driver.MySqlDataDriver, NHibernate, Version=4.0.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4. ---> System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.ArgumentException: 找不到请求的 .Net Framework Data Provider。可能没有安装。 在 NHibernate.Driver.ReflectionBasedDriver..ctor(String providerInvariantName, String driverAssemblyName, String connectionTypeName, String commandTypeName) 在 NHibernate.Driver.MySqlDataDriver..ctor()在网上找了很久问题都没有找到答案,
尝试很多方法都没有成功解决问题,终于就在刚刚,终于解决了这个问题。
我尝试在将mysql.data.dll文件手动拷贝到我的Photon工程文件/bin/Debug下,重新生成运行photon后,该问题得到解决
mysql.data.dll文件位置
资料原文:http://blog.csdn.net/wpcxyking/article/details/6219548
0 0
- Could not create the driver from NHibernate.Driver.MySqlDataDriver
- Could not create the driver from NHibernate.Driver.MySqlDataDriver
- NHibernate.ADOException: Could not create connection from Driver ---> System.InvalidOperationExcept
- nhibernate应用sqlite错误Could not create the driver from 。。。修复
- Could not create pool connection. The DBMS driver exception was: The Network Adapter could not estab
- Could not create pool connection. The DBMS driver exception was: Io 异常: Broken pipe
- Could not load JDBC driver class [com.mysql.jdbc.Driver]
- Could not resolve placeholder 'driver' in string value "${driver}"
- [原创]PHP could not find driver 解决方法
- Could not load JDBC driver class [${driverClassName}]
- The Network Adapter could not establish the connection at oracle.jdbc.driver.T4CConnection.logon
- jdbc启动错误(The driver has not received any packets from the server)
- jdbc启动错误(The driver has not received any packets from the server)
- kettle错误:The driver has not received any packets from the server
- 数据库连接超时The driver has not received any packets from the server
- OpenOffice 连接mysql The JDBC driver could not be loaded 的解决办法
- Yii “CDbConnection failed to open the DB connection: could not find driver"解决办法
- 打开Virtual PC 2007出现:Virtual PC could not open the Virtual Machine Network Services driver
- 腾讯云服务搭建后,Mysql无密码无法登陆解决方法
- 共轭梯度法
- H.264中NALU、RBSP、SODB的关系 (弄清码流结构)
- 在 Jelly Bean 中使用应用加密
- mysql查看锁住的表和事务隔离级别及存储过程跳出循环处理方式
- Could not create the driver from NHibernate.Driver.MySqlDataDriver
- HTML5和CSS3不仅仅是两项新的Web技术标准
- android程序中的AndroidManifest.xml中的uses-feature详解
- 数据分析工具,你选对了吗?
- 腾讯学院运营课程第一天
- Python3 基础:面向对象高级编程(上)
- 汉诺塔问题
- XML 中的 ﹤![CDATA[ ]]>,及其解析
- fedora23自动登陆root