Error | show | Original ASP program error, error tip is not very clear understand, let a person touch the mind, use the following method to see if there is no help (this method is currently only suitable for errors outside the ADO error)
Step one, open the c:\winnt\help\iisHelp\common\500-100.asp with the editor
Save it as a 500-101.asp backup (for later recovery)
Step two, overwrite the 500-100.asp original file with the following code, save exit
Step three, create a new file test.asp, add the following code
<% Response.Write Now (1)%>, Save to exit
Step four, enter localhost/test.asp in the browser to view the results
New Code for 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 = "Internal Server Error"
Response.ContentType = "Text/html"
Response.Expires = 0
End If
Set objASPError = Server.GetLastError
%>
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 3.2 final//en" >
<style>
a:link {font:9pt song body; color:ff0000}
a:visited {font:9pt song body; color: #4e4e4e}
</style>
<meta name= "ROBOTS" content= "NOINDEX" >
<title> Page Error </title>
<meta http-equiv= "Content-type" content= "text-html; charset=gb2312 ">
<meta name= "MS. LOCALE "content=" ZH-CN ">
<script>
function homepage () {
<!--
In real bits, URL get returned to We script like this:
Res://shdocvw.dll/http_404.htm#http://www.docurl.com/bar.htm
For testing Use Docurl = "res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm"
Docurl=document. URL;
This is where the HTTP or https'll is, as found by searching for://But skipping the res://
Protocolindex=docurl.indexof ("://", 4);
This finds the ending slash for the domain server
Serverindex=docurl.indexof ("/", Protocolindex + 3);
For the HREF, we are need a valid URL to the domain. We Search for the ' # symbol to find the begining
The true URL, and add 1 to skip It-this is the Beginurl value. We use Serverindex as the end marker.
Urlresult=docurl.substring (Protocolindex-4,serverindex);
Beginurl=docurl.indexof ("#", 1) + 1;
Urlresult=docurl.substring (Beginurl,serverindex);
For display, we need to skip http://, and go to the next slash
Displayresult=docurl.substring (Protocolindex + 3, serverindex);
document.write (' <a href= ' + Escape (urlresult) + ' > ' + displayresult + "</a>");
}
-->
</script>
<body bgcolor= "FFFFFF" >
<ul>
<li> Error Type:<br>
<%
Dim bakcodepage
Bakcodepage = Session.CodePage
Session.CodePage = 936
Response.Write Server.HTMLEncode (Objasperror.category)
If objasperror.aspcode > "" Then Response.Write Server.HTMLEncode ("," & objASPError.ASPCode)
Response.Write Server.HTMLEncode ("0x" & Hex (Objasperror.number) & ")" & "<br>"
If objasperror.aspdescription > "" Then Response.Write Server.HTMLEncode (objasperror.aspdescription) & "<br > "
%>
</li>
<p>
<li> wrong position:<br>
<%
blnErrorWritten = False
' Show the ' Source if it's available and the ' request is ' same machine as IIS
If objasperror.source > "" Then
strServerName = LCase (Request.ServerVariables ("SERVER_NAME"))
strServerIP = Request.ServerVariables ("local_addr")
strRemoteIP = Re