2012-12-07 258 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

回答