为什么当我重定向到其中一个页面时,Sitecore会抛出NullReferenceException异常?

Abs*_*Abs 5 iis iis-7 url-rewriting sitecore sitecore6

我在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  
Run Code Online (Sandbox Code Playgroud)

Bry*_*yan 3

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