ibatitsnet 因为会Dao.config 配置数据版本太低导致的问题
2016-05-31 21:27
701 查看
ProjectReview.Test.SqlMapTest.TestSqlMap:
IBatisNet.Common.Exceptions.ConfigurationException :
- The error occurred while configure DaoSessionHandler.
- The error occurred in <property name="resource" value="App_Data\sqlMap.config" xmlns="http://ibatis.apache.org/dataAccess" />.
- Check the IBatisNet.DataAccess.DaoSessionHandlers.SqlMapDaoSessionHandler.
----> IBatisNet.Common.Exceptions.ConfigurationException : DaoManager could not configure SqlMapDaoSessionHandler.Cause:
- The error occurred while loading SqlMap.
- loading insert tag
- The error occurred in <sqlMap embedded="PengeSoft.RFS.Maps.FileData.xml,PengeSoft.RFS" xmlns="http://ibatis.apache.org/dataMapper" />.
- Check the InsertFileData.
----> IBatisNet.Common.Exceptions.ConfigurationException :
- The error occurred while loading SqlMap.
- loading insert tag
- The error occurred in <sqlMap embedded="PengeSoft.RFS.Maps.FileData.xml,PengeSoft.RFS" xmlns="http://ibatis.apache.org/dataMapper" />.
- Check the InsertFileData.
----> System.ArgumentException : 未找到请求的值“image”。
解决方案: map 文件中会用到 dbType="image" 是因为Dao.config 中有的<provider name="OleDb2.0"/> 改成:<provider name="sqlServer2.0"/>
<database>
<provider name="OleDb2.0"/>
<dataSource name="dbName" connectionString="Provider=SQLOLEDB.1;Password=sa;Persist Security Info=True;User ID=sa;Initial Catalog=dbName;Data Source=local"/>
</database>
下面这个解决方法:原因是Provider=SQLOLEDB.1; 将其去掉就Ok 了
ProjectReview.Test.RFSServiceTest.AddFileFormiYstByRFS:
IBatisNet.DataAccess.Exceptions.DataAccessException : DaoProxy : unable to intercept method name 'GetDetail', cause : 不支持关键字: “provider”。
----> System.ArgumentException : 不支持关键字: “provider”。
IBatisNet.Common.Exceptions.ConfigurationException :
- The error occurred while configure DaoSessionHandler.
- The error occurred in <property name="resource" value="App_Data\sqlMap.config" xmlns="http://ibatis.apache.org/dataAccess" />.
- Check the IBatisNet.DataAccess.DaoSessionHandlers.SqlMapDaoSessionHandler.
----> IBatisNet.Common.Exceptions.ConfigurationException : DaoManager could not configure SqlMapDaoSessionHandler.Cause:
- The error occurred while loading SqlMap.
- loading insert tag
- The error occurred in <sqlMap embedded="PengeSoft.RFS.Maps.FileData.xml,PengeSoft.RFS" xmlns="http://ibatis.apache.org/dataMapper" />.
- Check the InsertFileData.
----> IBatisNet.Common.Exceptions.ConfigurationException :
- The error occurred while loading SqlMap.
- loading insert tag
- The error occurred in <sqlMap embedded="PengeSoft.RFS.Maps.FileData.xml,PengeSoft.RFS" xmlns="http://ibatis.apache.org/dataMapper" />.
- Check the InsertFileData.
----> System.ArgumentException : 未找到请求的值“image”。
解决方案: map 文件中会用到 dbType="image" 是因为Dao.config 中有的<provider name="OleDb2.0"/> 改成:<provider name="sqlServer2.0"/>
<database>
<provider name="OleDb2.0"/>
<dataSource name="dbName" connectionString="Provider=SQLOLEDB.1;Password=sa;Persist Security Info=True;User ID=sa;Initial Catalog=dbName;Data Source=local"/>
</database>
下面这个解决方法:原因是Provider=SQLOLEDB.1; 将其去掉就Ok 了
ProjectReview.Test.RFSServiceTest.AddFileFormiYstByRFS:
IBatisNet.DataAccess.Exceptions.DataAccessException : DaoProxy : unable to intercept method name 'GetDetail', cause : 不支持关键字: “provider”。
----> System.ArgumentException : 不支持关键字: “provider”。
相关文章推荐
- Maven实战之antrun插件
- jQuery修炼心得-DOM节点的删除
- jQuery修炼心得-DOM节点的插入
- SDNUOJ1014
- 汇编学习(九)8086汇编拾遗 (8)
- C++ Primer之 十二章 类
- iOS 【如何在perfromSelector后面拼接更多参数】
- 《剑指offer》-最小的K个数
- Android_通知(Notification)
- 频繁改动下的回归测试
- Android基于Bmob第三方后台开发的App——足说
- php.ini配置文件详解
- 共同学习SpringMVC源码--开篇语
- SAP本地化-银企直连
- Java面试知识点
- solver.prototxt参数说明(三)
- cassandra 监控方案评估
- cassandra 监控方案评估
- iOS开发UI篇—xib的简单使用
- hdu_2955_Robberies(01背包)