0
HttpContext.Current.Error.InnerException
总是返回空值,但我得到的值为HttpContext.Current.Error
和Server.GetLastError()
。HttpContext.Current.Error.InnerException总是返回空值
我的web.config文件是
<customErrors mode="RemoteOnly" defaultRedirect="~/Error.aspx" redirectMode="ResponseRewrite" />
呼叫'Exception.GetBaseException(InnerException属性返回的值相同)' – leppie