Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 26th, 2009, 04:54 PM
ghoti ghoti is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2009
Posts: 2 ghoti User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m
Reputation Power: 0
Troubleshooting - W2K3SP2/IIS-6/ASP/500 error

(Yes, another IIS 500 error message thread, sorry - I've looked at about 50 of these and none of them seemed to resolve my issue)

Environment:
  • Windows 2003 SP2
  • IIS 6
  • Default Web Site (listening on port 81)
  • Web Service Extensions configured to allow:
    • Active Server Pages
    • ASP.NET v1.1.4322
    • Server Side Includes
I created the following three files in C:\inetpub\wwwroot:
  • test.htm
    PHP Code:
    <html>
      <
    head><title>Test HTML Page</title></head>
      <
    body>
        <
    h1>Test HTML Page</h1>
        <
    b>Does <i>this</iwork?</b>
      </
    body>
    </
    html
  • test.asp (identical to above, just changed extension)
  • test2.asp
    PHP Code:
    <html>
      <
    head><title>Test HTML Page</title></head>
      <
    body>
        <
    h1>Test HTML Page</h1>
        <
    b>Does <i>this</iwork?</b>
        <% 
    response.write("Actual ASP Test") %>
      </
    body>
    </
    html
  • test2.htm (identical to above, just changed extension)
I then go through the IIS Manager into the Default Web Site and right click on each of the files (in turn) and select Browse. The results (as one might expect for this thread):
  • test.htm - works just fine
  • test.asp (html file with extension changed): HTTP/1.1 500 Server Error
  • test2.asp (html file with ASP code imbedded) - HTTP/1.1 500 Server Error
  • test.htm - no error, but [obviously] the ASP code doesn't render, just the HTML code renders.
I already have "Friendly HTML Errors" disabled.
I've ensured that the Home Directory > Applicaiton Configuration > Debugging section has "Send detailed ASP error messages to client" selected, and I've played around with the "Debugging flags" - doing iisreset's in between each change.
Nothing seems to help - nothing more detailed gets presented.

I've looked in the Event Viewer and the only errors I'm seeing are from "crypt32" and those don't appear to be associated with my attempts at viewing the ASP pages.
Is there some other log file that I should be looking at?

I've run the iisdiag (1.0) tools - and I notice that under Authentication Results it indicates a 403 error on W3SVC/1/ROOT/aspnet_client - AuthType: Anonymous.
I have no idea if this is related to my issues, nor what (if anything) I should do about it if it is.
I've tried to make sure that the c:\inetpub\wwwroot\aspnet_client directory has the [seemingly] correct access rights (Everyone has READ) the local server group, of which my Anonymous user is a member, has READ/EXECUTE permissions on the folder - and these rights are inherited down through the tree structure. (I think this is a red-herring)

Any help is much appreciated.
--fish

Reply With Quote
  #2  
Old May 26th, 2009, 08:37 PM
q97 q97 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Location: Brisvegas
Posts: 318 q97 User rank is Second Lieutenant (5000 - 10000 Reputation Level)q97 User rank is Second Lieutenant (5000 - 10000 Reputation Level)q97 User rank is Second Lieutenant (5000 - 10000 Reputation Level)q97 User rank is Second Lieutenant (5000 - 10000 Reputation Level)q97 User rank is Second Lieutenant (5000 - 10000 Reputation Level)q97 User rank is Second Lieutenant (5000 - 10000 Reputation Level)q97 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 21 h 38 m 10 sec
Reputation Power: 72
I think your problem is with how you've written your "asp" files. They don't have the correct tags at the begining of the document - hint it shouldn't be <html>.

See w3schools for great examples...

Reply With Quote
  #3  
Old May 27th, 2009, 01:03 PM
ghoti ghoti is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2009
Posts: 2 ghoti User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m
Reputation Power: 0
Quote:
Originally Posted by q97
I think your problem is with how you've written your "asp" files. They don't have the correct tags at the begining of the document - hint it shouldn't be <html>.

See w3schools for great examples...
Actually, those pages, for this purpose, are perfectly fine.

The problem turned out to be some issue with the Default Web Site on W2K3 and deleting and re-creating the Default Web Site resolved my problems.

Thanks anyway.

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Troubleshooting - W2K3SP2/IIS-6/ASP/500 error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
Stay green...Green IT