IIS 7.5 debugging errors in ASP, PHP pages...

Posted on 2011-10-05
Last Modified: 2012-06-04
Hello everyone,

I recently upgraded from IIS 6/Win 2003 to IIS 7.5/Win 2008.

Im getting a bit annoyed because even very basic errors such as a wrong DB connection or parent paths disabled, with both ASP and PHP, show an unclear Internal 500 error (or 4xx). I have to do procure with "Failed Request tracing rule" on the site to get the details.

Ive tried things such as, in the case of ASP, asking to show errors on client and server... Or when accesing site via IE disable the friendly errors. But nothing helps.

Please, how can the customers get clearer errors so its lower our workload and they can find out about specific errors themselves? Can someone pls advise on exact procedures?

Thank you!
Question by:viperman67
    LVL 30

    Expert Comment

    by:Brad Howe
    It is odd that you are not getting ANY errors.

    Confirm you have set the following.

    1. Disable IE "Friendly HTTP Error Messages" on the client side
    Go to “Tools > Internet Options”, choose the Advanced tab, and clear the “Show friendly HTTP error messages” checkbox.  Then, close the browser, open it again, and re-request the page.

    2. Detailed error logging on the website Server Side

    Try the following. From IIS Management, selecting your website/application/virtual directory in the left-hand tree view, clicking on the “Error Pages” icon, clicking “Edit Feature Settings” action, and then selecting “Detailed Errors”.

    IIS> Sites > Website > Error Pages > Edit Feature Settings > "Detailed errors"
    IIS> Sites > Website > ASP > Debugging Properties > Send Error to Browser = True


    Author Comment


    It helped once, but now for example I have a situation where its not helping. What exactly makes PHP for example errors show clearly?

    Also, how can I make it by default be set to show clear errors for everyone? There doesnt seem to be a master site like IIS6. Is it in application host config file?

    Here's an example

    internal error -

    trace logs indicate double php mapping -

    I did all procedures you mentioned, but it remains showing an unclear Internal error. I had to use TRACE logs to find the site has a double PHP mapping causing the issue.


    Accepted Solution


    We had success, basically, in the master site:

    - HTTP features/ERROR pages, on right side click on Edit feature settings and choose "Detailed errors".

    - Application development/ASP icon. Debugging properties, send error to browser TRUE.

    Thanks to Rafael Cresci. The other day a bunch of sites were down with the nasty internal error, we did the above and the error changed to  "could not connect to DB", making it much easier to troubleshoot.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
    Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
    This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
    This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

    755 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

    25 Experts available now in Live!

    Get 1:1 Help Now