Castle ActiveRecord/NHibernate System.Data.Services 依赖项和 Mono 2.4.2.3

发布于 2024-08-04 17:42:08 字数 420 浏览 5 评论 0原文

尝试使用 Castle ActiveRecord 将 ASP.Net MVC 应用程序移植到 mod_mono 服务器时出现以下编译错误。

System.Data.Services 在 Mono 中不可用吗?如果没有,我是否必须放弃 Castle ActiveRecord 框架 2.0 版本,因为它具有此依赖性,或者是否有替代方案?

** (/usr/lib/mono/2.0/gmcs.exe:7457):警告 **:无法加载从 /local/web/mn/bin/NHibernate.Linq.dll 引用的以下程序集: 程序集:System.Data.Services(程序集引用索引 = 3) 版本:3.5.0.0 公钥:b77a5c561934e089 在全局程序集缓存、MONO_PATH 环境变量中列出的路径或执行程序集的位置中找不到该程序集

Getting the following compilation error trying to port ASP.Net MVC application using Castle ActiveRecord to a mod_mono server.

Is System.Data.Services not available with mono? If not, do I have to throw out version 2.0 of Castle ActiveRecord framework since it has this dependency, or is there an alternative?

** (/usr/lib/mono/2.0/gmcs.exe:7457): WARNING **: The following assembly referenced from /local/web/mn/bin/NHibernate.Linq.dll could not be loaded:
Assembly: System.Data.Services (assemblyref_index=3)
Version: 3.5.0.0
Public Key: b77a5c561934e089
The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

木格 2024-08-11 17:42:08

我刚刚遇到了这个问题,搜索 ActiveRecord 没有找到任何东西,但是搜索 NHibernate 却找到了 - 这是 NHibernate LINQ 实现的最近更改,添加了这个。您可以在没有 LINQ DLL 的情况下使用 ActiveRecord 和 NHibernate,或者在那里已经是提交包含在 Mono 中的 DLL 的一个版本,它至少可以编译代码,尽管我还没有测试在实际的 LINQ 实现中哪些可以工作,哪些不能工作:
DLL 从这里链接到: http:// lists.ximian.com/pipermail/mono-devel-list/2009-October/033284.html

I just ran into this, and hunting around for ActiveRecord didn't find anything, but searching for NHibernate did - it's a recent change to the NHibernate LINQ implementation that adds this in. You can use ActiveRecord and NHibernate without the LINQ DLLs, or there has been a version of the DLL submitted for inclusion in Mono, which at least gets code compiling, although I haven't yet tested what does and doesn't work in the actual LINQ implementation:
The DLL is linked to from here: http://lists.ximian.com/pipermail/mono-devel-list/2009-October/033284.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文