HTTP 500 Internal Server Error

Posted on 2012-09-17
Medium Priority
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
  • 6
  • 2

Accepted Solution

Frederic Sune earned 2000 total points
ID: 38407850
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
ID: 38408192
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
ID: 38408208
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.
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Author Comment

by:Jason Yu
ID: 38408225
<!--#include file="inc/sub.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<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
ID: 38408240
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
ID: 38408280
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


Expert Comment

by:Frederic Sune
ID: 38409240
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
ID: 38410610
After took his advice, I solved the issue, thank you.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to install and use the NTBackup utility that comes with Windows Server.
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

831 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