HTTP 500 even IIS 5.1 is installed

提議的解答 HTTP 500 even IIS 5.1 is installed

  • 2009年10月16日 9:41
     
     

    I've just made a website with asp
    however I don't know why an HTTP 500 error is still exist even though I've installed the IIS 5.1

    I can open my htmls but can't open the asps,why

    When I open it, it just comes out with

     

    Server Application Error

    The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.

    when the web is in a frame and

     

    The website cannot display the page

     HTTP 500
     

    Most likely causes:

    • The website is under maintenance.
    • The website has a programming error.
     

    What you can try:

     

      Refresh the page.

     

      Go back to the previous page.

     

      More information

    This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.

    For more information about HTTP errors, see Help.

     

    When the web is opened independently.

    WHY? can sb tells me and help me fix the problem?

    CODE:

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="950"%>
    <%
    '  *** Recordset Stats, Move To Record, and Go To Record: declare stats variables

    Dim Members_total
    Dim Members_first
    Dim Members_last

    ' set the record count
    Members_total = Members.RecordCount

    ' set the number of rows displayed on this page
    If (Members_numRows < 0) Then
      Members_numRows = Members_total
    Elseif (Members_numRows = 0) Then
      Members_numRows = 1
    End If

    ' set the first and last displayed record
    Members_first = 1
    Members_last  = Members_first + Members_numRows - 1

    ' if we have the correct record count, check the other stats
    If (Members_total <> -1) Then
      If (Members_first > Members_total) Then
        Members_first = Members_total
      End If
      If (Members_last > Members_total) Then
        Members_last = Members_total
      End If
      If (Members_numRows > Members_total) Then
        Members_numRows = Members_total
      End If
    End If
    %>

    <%
    ' *** Recordset Stats: if we don't know the record count, manually count them

    If (Members_total = -1) Then

      ' count the total records by iterating through the recordset
      Members_total=0
      While (Not Members.EOF)
        Members_total = Members_total + 1
        Members.MoveNext
      Wend

      ' reset the cursor to the beginning
      If (Members.CursorType > 0) Then
        Members.MoveFirst
      Else
        Members.Requery
      End If

      ' set the number of rows displayed on this page
      If (Members_numRows < 0 Or Members_numRows > Members_total) Then
        Members_numRows = Members_total
      End If

      ' set the first and last displayed record
      Members_first = 1
      Members_last = Members_first + Members_numRows - 1
     
      If (Members_first > Members_total) Then
        Members_first = Members_total
      End If
      If (Members_last > Members_total) Then
        Members_last = Members_total
      End If

    End If
    %>

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=big5">
    <title>...</title>
    <link href="Style_Homepage.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    <!--
    body {
     background-color: #003366;
    }
    -->
    </style></head>

    <BODY>

    .

    .

    .

    </body>
    </html>

所有回覆