初始化站点时出现 ArgumentNullException
我正在评估几个服务框架,其中之一是 OpenRasta。
尽管由于缺乏组织(多个源代码存储库、缺乏二进制下载、过时的构建指令和构建的最终结果)而感到有点惊讶,OpenRasta.dll 的版本为 0.0.0.0构建 openrasta-core 存储库),我设法开始构建一个带有提供一些 Xml 服务的站点(我确实包含了 OpenRasta.Hosting.AspNet 并根据 IIS 配置了处理程序和模块或卡西尼号)。
但是,当我第一次访问该站点(IIS Express 和 VS Dev Server)时,我收到来自 PipelineStage.cs
的 ArgumentNullException
。显然,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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试将资源注册包装在
“另请检查”中;
https://github.com/openrasta/openrasta-stable /wiki/Building-Your-First-OpenRasta-Website
希望这有帮助
try wrapping resource registrations in
Also check this out;
https://github.com/openrasta/openrasta-stable/wiki/Building-Your-First-OpenRasta-Website
Hope this helps