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