后,我现在用的是自定义错误在web.config属性来处理自定义错误会话是空ResponseRewrite
像这样:
<customErrors mode="On" defaultRedirect="~/Error.aspx" redirectMode="ResponseRewrite" />
引发错误后,页面被重定向到错误页面,但是当我访问错误页面中的会话时,它是空的。
我使用ResponseRewrite
而不是ResponseRedirect
的原因是因为我通过使用elmah的项目通过Exception id
。
我甚至试图创建新的空asp.net网站,它仍然发生。
我见过一些类似的问题,但没有答案。
你可以添加代码或更多的细节?我没有在Visual Studio 2012,IIS 8中重现错误。 – nmat 2013-05-26 16:00:15
我正在使用visual studio 2010,iis6 – Amir 2013-05-27 07:08:14