当发生 404 错误并且 default.asp 碰巧有任何其他错误(例如,SQL 查询超时)时,IIS 仅显示空白页而不显示实际错误。因为当显示自定义错误模块以显示页面时,IIS 期望页面正常工作。如果在此阶段发生任何错误(错误后处理),则跳回错误前处理阶段为时已晚。空白页是合理的。
And enable "send errors to browser" for asp.
Please check that again.
<httpErrors errorMode="Custom">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="/testdefault.asp" responseMode="ExecuteURL" />
</httpErrors>
和这个很像。
https://forums.iis.net/t/1229075.aspx?Blank+screen+on+custom+error+404+page