????? ????? ??? ASP ?????

?????? ????????? ?????? ?????????
???? ???????: 224070 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

??????

????? ??????? ?????? ?? Microsoft (IIS) ??????? 5.0 ???? ?????? ??? ????? ????? ??? ????? ????? ?????? ?????? (ASP) ???? ????? ????? ???? ????? ?????? ASP ???? ??????? Server.GetLastError() ????? ???? ASPError ????.

??????? ????

??? ???? ??? ????? ??????? ??????? ?? ????? ???? ????? ASP ?????? ??? 500; 100 IIS ? ????? ????? Server.Transfer() ?????? ?????? ??? ???? ??? ????? ??????? ??????. (??? ?????? ???? ??????? /iishelp/common/500-100.asp.) ?????? ??? ???? ?? ????????? ??? ????? Server.Transfer() ???? ??????? ??????? ?? "????? ??????? ?? Microsoft:
219294????? ??????? ????? Server.Transfer
????? ??? ????? ?????? ??? ???? ??? ????? ? ???? ?? ??????? ??????? Server.GetLastError() ?????? ??? ??????? ??????? ????? ????? ???? ???. ??????? Server.GetLastError() ?????? ???? ASPError ?? ??????? ???????? ?? ?????? ??????. (??? ?????? ????? ?????? ????? ??? ??????? ??????? IIS 5.0.)
?? ??? ??????????? ??? ??????
??????????
ASPCode????? ??? ??? ???? ?? ??????? ?????? IIS.
???????? ??? ????? COM ????????.
??????????? ??? ?? ??? ??? ???? ????? ????? ??? ASP ?? ??? ??????? ?????? ?? ????.
??????? ??? ??? ????? .asp ?????? ??? ???? ?????.
??????? ??? ?? ??? ????? .asp ????? ?????.
???????? ??? ????? ?????.
ASPDescription????? ??? ???? ??????? ?? ????? ??? ??? ??? ASP ??? ?????.
??? ??????? ??????? ????? ???? ???? ???? ????? ???? ??? ASP ?????.
  1. ???? ????????? ???????? ?? ASP ??????? ?? ???? ??????? ?????? "My500.asp" (???? ?????? ????????):
    <%@Language="VBSCRIPT"%>
    <%
      Option Explicit
      On Error Resume Next
      Response.Clear
      Dim objError
      Set objError = Server.GetLastError()
    %>
    <html>
    <head>
    <title>ASP 500 Error</title>
    <style>
    BODY  { FONT-FAMILY: Arial; FONT-SIZE: 10pt;
            BACKGROUND: #ffffff; COLOR: #000000;
            MARGIN: 15px; }
    H2    { FONT-SIZE: 16pt; COLOR: #ff0000; }
    TABLE { BACKGROUND: #000000; PADDING: 5px; }
    TH    { BACKGROUND: #0000ff; COLOR: #ffffff; }
    TR    { BACKGROUND: #cccccc; COLOR: #000000; }
    </style>
    </head>
    <body>
    
    <h2 align="center">ASP 500 Error</h2>
    
    <p align="center">An error occurred processing the page you requested.<br>
    Please see the details below for more information.</p>
    
    <div align="center"><center>
    
    <table>
    <% If Len(CStr(objError.ASPCode)) > 0 Then %>
      <tr>
        <th nowrap align="left" valign="top">IIS Error Number</th>
        <td align="left" valign="top"><%=objError.ASPCode%></td>
      </tr>
    <% End If %>
    <% If Len(CStr(objError.Number)) > 0 Then %>
      <tr>
        <th nowrap align="left" valign="top">COM Error Number</th>
        <td align="left" valign="top"><%=objError.Number%>
        <%=" (0x" & Hex(objError.Number) & ")"%></td>
      </tr>
    <% End If %>
    <% If Len(CStr(objError.Source)) > 0 Then %>
      <tr>
        <th nowrap align="left" valign="top">Error Source</th>
        <td align="left" valign="top"><%=objError.Source%></td>
      </tr>
    <% End If %>
    <% If Len(CStr(objError.File)) > 0 Then %>
      <tr>
        <th nowrap align="left" valign="top">File Name</th>
        <td align="left" valign="top"><%=objError.File%></td>
      </tr>
    <% End If %>
    <% If Len(CStr(objError.Line)) > 0 Then %>
      <tr>
        <th nowrap align="left" valign="top">Line Number</th>
        <td align="left" valign="top"><%=objError.Line%></td>
      </tr>
    <% End If %>
    <% If Len(CStr(objError.Description)) > 0 Then %>
      <tr>
        <th nowrap align="left" valign="top">Brief Description</th>
        <td align="left" valign="top"><%=objError.Description%></td>
      </tr>
    <% End If %>
    <% If Len(CStr(objError.ASPDescription)) > 0 Then %>
      <tr>
        <th nowrap align="left" valign="top">Full Description</th>
        <td align="left" valign="top"><%=objError.ASPDescription%></td>
      </tr>
    <% End If %>
    </table>
    
    </center></div>
    
    </body>
    </html>
    						
  2. ????? ???? ??? ????? ?? ASP:

    1. ???? ????? ????? ?????? ?? MMC.
    2. ?? ?????? ???? ??? ????????? ????? ??.
    3. ???? ??? ?????? ?????? ??? ???? ??????? ?????? ???? ?????.
    4. ???? ??? ????? ??????? ????? ????.
    5. ?? ???????? ????? ??? HTTP 500; 100 ?? ???? ??? ????? ???????.
    6. ???? ?? ????? ??? ??????? ??? URL.
    7. ????? URL ??? "/ scripts/my500.asp" (???? ?????? ????????).
    8. ???? ??? ????? ??? ?? ???? ??? MMC.
  3. ?????? ??? ????:

    1. ??? ???? ??????? ??????? ?? ???? ??????? ??????:

      • ??? ?????? ??????? "Badpage1.asp" (???? ?????? ????????):
        <%@Language="VBSCRIPT"%>
        <html>
        <head>
        <title>Bad Page 1</title>
        </head>
        <body>
        <% Response.Write 1/0 %>
        </body>
        </html>
        										
      • ??? ?????? ??????? Badpage2.asp"(???? ?????? ????????):
        <%@Language="VBSCRIPT"%>
        <html>
        <head>
        <title>Bad Page 2</title>
        </head>
        <body>
        <% Response.BadMethod "Hello" %>
        </body>
        </html>
        										
      • ??? ?????? ??????? "Badpage3.asp" (???? ?????? ????????):
        <%@Language="VBSCRIPT"%>
        <html>
        <head>
        <title>Bad Page 3</title>
        </head>
        <body>
        <%
          Dim objBad
          Set objBad = Server.CreateObject("BAD.OBJECT.CLASS")
        %>
        </body>
        </html>
        										
    2. ??? ??????? ?? ?? ????? ????? ??? ?? ????? ???? ??? ????? ??? ???????? ????.
??????: ??? ??????? Internet Explorer 5.0 ?????????? ?????? ???? "???? ASP ??? ?????" ? ?? ??? ????? ????? ??? ??????. IE5 ?????? ???? ???????? ???? HTML ?? HTTP 500 ?? ????? ???? ?????? ?? ??????? ????? ??? ???? ??? ????? ???? ????. ?????? ??? ?????? ?????? ???? ???? ??? ?????? ???? ?? ?????? ??? ???????? ???? Internet Explorer ?? ????? ???:
Tools | Internet Options | Advanced
					

?? ?? ?????? ????? ???? ???????? ???????
Show friendly HTTP error messages
					

????? ??????? ?????? ??? ??? ?????? ??
218155??? ????? ??? ???????? ??? ?? ?????

???????

???? ???????: 224070 - ????? ??? ??????: 30/????/1427 - ??????: 1.2
????? ???
  • Microsoft Internet Information Services 5.0
????? ??????: 
kbmt kbaspobj kbcodesnippet kbinfo KB224070 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????224070
????? ??????? ?? ????? ???? ?? ????? ???????
?? ????? ????? ?????? ???? ???? ???? ??? ??????? ??? ?? ? ?? ??? ??????? Microsoft ??? ????? ??? ??????? ????? ?????? ?????

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com