Castle.Facilities.NHibernateIntegration 版本通过 NuGet 实现?
通过 NuGet 添加了 Castle.Facilities.NHibernateIntegration,现在当我尝试运行该站点时,出现以下错误:
类型中的方法“get_IsOpen” 'Castle.Facilities.NHibernateIntegration.StatelessSessionDelegate' 从装配 '城堡.设施.NHibernateIntegration, 版本=1.1.0.0,文化=中立, PublicKeyToken=407dd0808d44fbdc' 确实 没有实施。 描述:未处理的异常 执行期间发生的 当前的网络请求。请查看 堆栈跟踪以获取有关的更多信息 错误及其起源 代码。
异常详细信息: System.TypeLoadException:方法 类型中的“get_IsOpen” 'Castle.Facilities.NHibernateIntegration.StatelessSessionDelegate' 从装配 '城堡.设施.NHibernateIntegration, 版本=1.1.0.0,文化=中立, PublicKeyToken=407dd0808d44fbdc' 确实 没有实现。
通过 NuGet 提供的最新 Castle.Facilities.NHibernateIntegration 版本是 1.1.0
通过 NuGet 添加的其他软件包版本:
- Castle.Core:2.5.2
- Castle.Windsor:2.5.3
- NHibernate:3.1.0.4000
- NHibernate.Castle:3.1.0.4000
- FluentNHibernate:1.2 .0.712
- Castle.Core-log4net: 2.5.2
- Castle.Windsor-log4net:2.5.2
- Rx-Core:1.0.2856.0
- Rx-Main:1.0.2856.0
- Rx-Interactive:1.0.2856.0
- Castle.Services.Transaction:3.0.6.1006
有什么想法吗?谢谢。
Added Castle.Facilities.NHibernateIntegration via NuGet, and now when I try to run the site, I get the following error:
Method 'get_IsOpen' in type
'Castle.Facilities.NHibernateIntegration.StatelessSessionDelegate'
from assembly
'Castle.Facilities.NHibernateIntegration,
Version=1.1.0.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc' does
not have an implementation.
Description: An unhandled exception
occurred during the execution of the
current web request. Please review the
stack trace for more information about
the error and where it originated in
the code.Exception Details:
System.TypeLoadException: Method
'get_IsOpen' in type
'Castle.Facilities.NHibernateIntegration.StatelessSessionDelegate'
from assembly
'Castle.Facilities.NHibernateIntegration,
Version=1.1.0.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc' does
not have an implementation.
Latest Castle.Facilities.NHibernateIntegration version available via NuGet is 1.1.0
Other package versions added via NuGet:
- Castle.Core: 2.5.2
- Castle.Windsor: 2.5.3
- NHibernate: 3.1.0.4000
- NHibernate.Castle: 3.1.0.4000
- FluentNHibernate: 1.2.0.712
- Castle.Core-log4net: 2.5.2
- Castle.Windsor-log4net: 2.5.2
- Rx-Core: 1.0.2856.0
- Rx-Main: 1.0.2856.0
- Rx-Interactive: 1.0.2856.0
- Castle.Services.Transaction: 3.0.6.1006
Any ideas? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将 NHibernateIntegration 版本升级到最新版本(当前为 1.1.0.39)。您当前的版本 1.1.0.0 与 NHibernate 3.1 及更高版本不兼容。 NHibernate 3.0.0.4000 没有被抱怨的 IsOpen 属性
Upgrade your version of NHibernateIntegration to the latest version (currently 1.1.0.39). Your current version, 1.1.0.0, is not compatible with NHibernate 3.1 and above. NHibernate 3.0.0.4000 didn't have the IsOpen property that's being complained about
检查其他包的依赖关系 - 听起来您可能引入了两个引用不同版本的
Castle.Facilities.NHibernateIntegration
的包(例如,也许其中一个使用的是 1.1 之后的版本,其中包含开放财产?)Check the dependencies of the other packages - it sounds like you might have brought in two packages that reference different versions of
Castle.Facilities.NHibernateIntegration
(eg. maybe one is using something later than 1.1, which has the Open property?)