开发者

NHibernate : InvalidCastException

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜