HTTP 500 Internal Server Error

Posted on 2012-09-17
Last Modified: 2012-09-18
Dear all:

It's a general error when I tried to set up an ASP website. All things runs well with "hello world" testing asp site but after I copied the website need testing, this error comes about. It's general "HTTP 500 Internal Server Error". Please see the attachment_1.

Then I began to trouble shooting, I checked the IIS manager, go to default webs  site (I only have one website), then at the right, there is an option called "Basic Settings". After I click this setting, there is "Edit Site" dialog box pops out with two buttons, one is called "test settings", after I clicked this button, it gives me one green authentication icon and one exclamation for authorization. I was wondering if it's a authorization related error, thank you.

Question by:Jason Yu
    LVL 7

    Accepted Solution

    If look like you have a security issue. Which account are you running the app pool?
    Is this account in the IIS_USR group?
    Also, on your website, which authentication mode are you using? If anonymous, right click on it and select "Use app pool identity".
    Last step, check your www security folder and confirm you have the IIS_USR account there with the Read/Execute right.

    And if everything is there, open a command prompt as an admin and do an IISRESET command.

    Author Comment

    by:Jason Yu
    For question 1, I checked, I am using Built-in account: applicationpoolidentity account, is it a right account? I checked IIS_IUSRS group, this account is not in this group, what should I do, using another account?

    Author Comment

    by:Jason Yu
    I changed the account running the app pool to domain "administrator" account. And double checked this account is in IIS_IUSR group.

    the second one, I followed your instruction and chose "Use app pool identity"

    For third one, I checked it, it's included in permission.

    I can run IISRESET command successfully.

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.


    Attempting stop...
    Internet services successfully stopped
    Attempting start...
    Internet services successfully restarted


    But the website is still now working. I am attaching the index.asp page for your reference.

    Author Comment

    by:Jason Yu
    <!--#include file="inc/sub.asp" -->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns="">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>Welcome - <%=SiteTitle%></title>
    <meta name="Keywords" content="<%=Keywords%>" />
    <meta name="Description" content="<%=Descriptions%>" />

    <link href="css/common.css" type="text/css" rel="stylesheet" />


    <!--#include file="top.asp"-->
    <!--#include file="menu.asp"-->

    <div class="banner">
    <img src="images/pic.jpg" width="100%" height="480"/>
    <div class="clear"></div>
    <div class="clear"></div>
    <div class="index_bai">
    <div class="clear"></div>
    <div class="lan970">
    <div class="lantitle"><span>About Us</span></div>
    <div class="lancon">

    <div style=" width:811px; margin:10px auto; clear:both">
    <div style="width:450px; float:left; font-size:14px; line-height:25px;">
    What is reflexology:<br>
    ·&nbsp;&nbsp;Reflexology delivers the following benefits:<br>
    ·&nbsp;&nbsp;Stress reduction and deep relaxation<br>
    ·&nbsp;&nbsp;Improved circulation<br>
    ·&nbsp;&nbsp;Aids the body in eliminating wastes and impurities<br>
    ·&nbsp;&nbsp;Revitalizes energy and balances the body<br>
    <div style=" float:left;">
    <div style=" margin-top:10px;">
    <img src="images/about.jpg"  width="253" height="167"/></div>
    <div class="clear"></div>
    <div style=" width:811px; margin:10px auto;font-size:14px; line-height:25px; clear:both">
    <div class="clear"></div>



    <!--#include file="bottom.asp"-->


    Author Comment

    by:Jason Yu
    I did a basic settings again, this time, both Authentication and Authorization show right. pls see the attachment. It looks like my web server is OK, Does the error come from the Index.asp page?

    Author Comment

    by:Jason Yu
    I used another testing index file tested, it works with this index.asp file, please see:

    <title>My First ASP Page</title>
    </head><body bgcolor="white" text="black">

    'Dimension variables
    Dim strMessage

    'Place the value Hello World into the variable strMessage
    strMessage = "Hello World"       

           'Write the contents of the variable strMessage to the web page
    Response.Write (strMessage)      

    'Write line break into the web page
    Response.Write ("<br>")       

           'Write the server time on the web page using the VBScript Time() function
    Response.Write ("The time on the server is: " & Time())

    'Close the server script

    LVL 7

    Expert Comment

    I see that you are using include function with specific files, do these files have the right permission too? Maybe there are on a separate folder which didn't inherited the security from parent folder. Same for the folder images and inc, check the security...

    Since you are able to do a single test, that's mean your IIS is correctly configure. Something with the first file you try to load...

    Author Closing Comment

    by:Jason Yu
    After took his advice, I solved the issue, thank you.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
    You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
    This tutorial will give a short introduction and overview of Backup Exec 2014 and the additional features that have been added over its predecessor Backup Exec 2012. As with Backup Exec 2012, the Backup Exec button in the upper left corner. From her…
    This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now