我用的笨办法,在web.config里指定各种错误指向的页面,当然也可以只指向一个页面,带不同的参数。<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="500" redirect="Err01.aspx" />
<error statusCode="404" redirect="Err02.aspx" />
</customErrors>然后每个错误页面打开的时候,写入错误日志表,就可以统计了。
<error statusCode="500" redirect="Err01.aspx" />
<error statusCode="404" redirect="Err02.aspx" />
</customErrors>然后每个错误页面打开的时候,写入错误日志表,就可以统计了。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货