Castle.MicroKernel.ComponentNotFoundException:找不到支持服务 Castle.Services.Transaction.ITransactionManager 的组件
您好,我正在将 Castle 与 NHibernate 集成工具一起使用,
我正在运行一些测试,但它们因错误而失败
at Castle.MicroKernel.DefaultKernel.get_Item(Type service)
at Castle.Facilities.NHibernateIntegration.DefaultSessionManager.ObtainCurrentTransaction()
at Castle.Facilities.NHibernateIntegration.DefaultSessionManager.OpenSession(String alias)
at Castle.Facilities.NHibernateIntegration.DefaultSessionManager.OpenSession()
at Core.Repositories.NHibernateSqlDbLiteRepository`1.GetAll()
Hi I am using Castle with the NHibernate Integration Faclility
I am running a few tests and they are failing with the error
at Castle.MicroKernel.DefaultKernel.get_Item(Type service)
at Castle.Facilities.NHibernateIntegration.DefaultSessionManager.ObtainCurrentTransaction()
at Castle.Facilities.NHibernateIntegration.DefaultSessionManager.OpenSession(String alias)
at Castle.Facilities.NHibernateIntegration.DefaultSessionManager.OpenSession()
at Core.Repositories.NHibernateSqlDbLiteRepository`1.GetAll()
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我认为错误非常明显 - 您没有注册事务管理器。这可能意味着您没有向容器添加事务设施,是吗?
well I think the error is pretty obvious - you didn't register transaction manager. This probably means you didn't add Transaction facility to the container, did you?