Make your error tips more vivid

zhaozj2021-02-16  72

The default IIS 500-100.asp file error prompt only reports the number, this is still very troublesome to find the mistake.

This document is a modified 500-100.asp file, directly displaying the text of the wrong line, easy to find errors

<% @ Language = "VBScript"%> <% OPTION Explicit

Const lngmaxformbytes = 200

Dim ObjaspeRror, BLNERRORWRITEN, STRSERVERNAME, STRSERVERIP, STRREMOTEIP DIM STRMETHOD, LNGPOS, DATNOW, STRQUERYSTRING, STRURL

If Response.buffer thratus = "500 internal server error" response.contenttype = "text / html" response.expires = 0 end if

Set objasperror = server.getlasterror%>