初始化站点时出现 ArgumentNullException

发布于 2024-12-26 00:57:53 字数 650 浏览 5 评论 0原文

我正在评估几个服务框架,其中之一是 OpenRasta。

尽管由于缺乏组织(多个源代码存储库、缺乏二进制下载、过时的构建指令和构建的最终结果)而感到有点惊讶,OpenRasta.dll 的版本为 0.0.0.0构建 openrasta-core 存储库),我设法开始构建一个带有提供一些 Xml 服务的站点(我确实包含了 OpenRasta.Hosting.AspNet 并根据 IIS 配置了处理程序和模块或卡西尼号)。

但是,当我第一次访问该站点(IIS Express 和 VS Dev Server)时,我收到来自 PipelineStage.csArgumentNullException。显然,pipeline.CallGraph 属性为 null。

我的配置源只是:

ResourceSpace.Has
   .ResourcesOfType<CatalogCollection>()
   .AtUri("/catalogs")
   .HandledBy<CatalogsHandler>()
   .AsXmlDataContract();

正如我所提到的,我正在使用昨天从 openrasta-core 存储库克隆的代码。

提前致谢

I am in the process of evaluating several service frameworks and one of them is OpenRasta.

Despite being taken a bit aback for the lack of organization (multiple source code repositories, lack of binary downloads, outdated build instructions and the end result of the build, OpenRasta.dll, has version 0.0.0.0 after building the openrasta-core repository), I managed my way to start building a site with a service that serves a bit of Xml (I did include OpenRasta.Hosting.AspNet and configured the handlers and modules as per IIS or Cassini).

But the very first time I hit the site (both IIS Express and VS Dev Server) I get a ArgumentNullException coming from the PipelineStage.cs. Apparently the pipeline.CallGraph property is null.

My configuration source is a mere:

ResourceSpace.Has
   .ResourcesOfType<CatalogCollection>()
   .AtUri("/catalogs")
   .HandledBy<CatalogsHandler>()
   .AsXmlDataContract();

As I mentioned I am using the code I cloned from the openrasta-core repository as of yesterday.

Thanks in advance

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

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

发布评论

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

评论(1

和我恋爱吧 2025-01-02 00:57:53

尝试将资源注册包装在

using (OpenRastaConfiguration.Manual)
{
//code
}

“另请检查”中;

https://github.com/openrasta/openrasta-stable /wiki/Building-Your-First-OpenRasta-Website

希望这有帮助

try wrapping resource registrations in

using (OpenRastaConfiguration.Manual)
{
//code
}

Also check this out;

https://github.com/openrasta/openrasta-stable/wiki/Building-Your-First-OpenRasta-Website

Hope this helps

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