2012-12-07 260 views
0

HttpContext.Current.Error.InnerException总是返回空值,但我得到的值为HttpContext.Current.ErrorServer.GetLastError()HttpContext.Current.Error.InnerException总是返回空值

我的web.config文件是

<customErrors mode="RemoteOnly" defaultRedirect="~/Error.aspx" redirectMode="ResponseRewrite" /> 
+0

呼叫'Exception.GetBaseException(InnerException属性返回的值相同)' – leppie

回答