导读:
默认的IIS 500-100.ASP文件错误提示只报到行号,这对我们找错误还是很麻烦的
本文件是修改后的500-100.ASP文件,直接显示出错行的文本,便于查找错误
<%@ language="VBScript" %>
<%
Option Explicit
Const lngMaxFormBytes = 200
Dim objASPError, blnErrorWritten, strServername, strServerIP, strRemoteIP
Dim strMethod, lngPos, datNow, strQueryString, strURL
If Response.Buffer Then
Response.Clear
Response.Status = "500 Internal Server Error"
Response.ContentType = "text/HTML"
Response.Expires = 0
End If
Set objASPError = Server.GetLastError
%> Option Explicit
Const lngMaxFormBytes = 200
Dim objASPError, blnErrorWritten, strServername, strServerIP, strRemoteIP
Dim strMethod, lngPos, datNow, strQueryString, strURL
If Response.Buffer Then
Response.Clear
Response.Status = "500 Internal Server Error"
Response.ContentType = "text/HTML"
Response.Expires = 0
End If
Set objASPError = Server.GetLastError
%>
本页无法显示
默认的IIS 500-100.ASP文件错误提示只报到行号,这对我们找错误还是很麻烦的
本文件是修改后的500-100.ASP文件,直接显示出错行的文本,便于查找错误
<%@ language="VBScript" %>
<%
Option Explicit
Const lngMaxFormBytes = 200
Dim objASPError, blnErrorWritten, strServername, strServerIP, strRemoteIP
Dim strMethod, lngPos, datNow, strQueryString, strURL
If Response.Buffer Then
Response.Clear
Response.Status = "500 Internal Server Error"
Response.ContentType = "text/HTML"
Response.Expires = 0
End If
Set objASPError = Server.GetLastError
%> Option Explicit
Const lngMaxFormBytes = 200
Dim objASPError, blnErrorWritten, strServername, strServerIP, strRemoteIP
Dim strMethod, lngPos, datNow, strQueryString, strURL
If Response.Buffer Then
Response.Clear
Response.Status = "500 Internal Server Error"
Response.ContentType = "text/HTML"
Response.Expires = 0
End If
Set objASPError = Server.GetLastError
%>
本页无法显示 |
试图访问的网页出现问题,无法显示。 |
请尝试以下方法:
HTTP 500.100 - 内部服务器错误 - ASP 错误 |