gpt4 book ai didi

iis - 当我重定向到 Sitecore 的某一页面时,为什么它会抛出 NullReferenceException 异常?

转载 作者:行者123 更新时间:2023-12-01 21:59:46 24 4
gpt4 key购买 nike

我在 Windows 2008、IIS7 上运行 Sitecore 6.1,并且尝试使用 URL 重写模块进行重定向。当我启用规则并点击触发它的 URL 时,我会收到 YSOD。相同的规则在同一台计算机上的非 Sitecore 站点上完美运行。根据失败的请求跟踪,重写模块做得很好,但随后 Sitecore 会抛出异常,即使重定向指向另一台服务器也是如此。这可能是我配置错误的结果,但我只是不明白为什么它不起作用。 YSOD 的详细信息如下。

[NullReferenceException: Object reference not set to an instance of an object.]  
Sitecore.Nexus.Web.HttpModule.(Object sender, EventArgs e) +273
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

最佳答案

Sitecore 有自己的 URL 重定向引擎,因此有些线路可能会在这里交叉。可能您需要移动 HttpModule,以便它在链中更早执行。

关于iis - 当我重定向到 Sitecore 的某一页面时,为什么它会抛出 NullReferenceException 异常?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2351449/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com