开发者

NHibernate : InvalidCastException

开发者 https://www.devze.com 2023-01-06 20:47 出处:网络
I am getti开发者_JAVA百科ng an InvalidCastException when connecting to sybase db. When i call BuildSessionFactory() i am gettign following error. Can somebody tell me what could be the reason...

I am getti开发者_JAVA百科ng an InvalidCastException when connecting to sybase db.

When i call BuildSessionFactory() i am gettign following error. Can somebody tell me what could be the reason...

"Unable to cast object of type 'Sybase.Data.AseClient.AseConnection' to type 'System.Data.Common.DbConnection'."

Thanks in advance.


You need a newer version of the Sybase provider, that is built for .Net 2.0+.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号