Iis| shows that most recently people have been asked not to display the details of ASP errors in Win2000 and IIS5, but only the error number, such as "Error Id800xxxxx", which makes debugging of the program inconvenient, some people take the 500-100 error pointing to default in IIS, There is no detailed error message to do so. In fact, this could be a security concern for Microsoft and there is no verbose error message in 500-100.asp. In fact, you just have to change the 500-100.asp slightly. Here are the contents of this file that I modified. All you have to do is copy it down and save it as a 500-100.asp and then overwrite the original file. Note that the two lines in the file are the ones I modified.
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> This page cannot display </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= ' + urlresult + ' "> ' + displayresult +" </a> ");
}
-->
</script>
<body bgcolor= "FFFFFF" >
<table width= "410" cellpadding= "3" cellspacing= "5" >
<tr>
<TD align= "left" valign= "Middle" width= "360" >
<font style= "color:000000; Font:9pt "> The page you are trying to access has a problem and cannot be displayed. </font></td>
</tr>
<tr>
<TD width= "colspan=" 2 ">
<font style= "color:000000; Font:9pt Song Body ">
<p> Please try the following methods:</p>
<ul>
<li id= "Instruction