?
Solved

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

Posted on 2011-10-05
5
Medium Priority
?
337 Views
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!
0
Comment
Question by:viperman67
  • 2
3 Comments
 
LVL 30

Expert Comment

by:Brad Howe
ID: 36921238
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
http://learn.iis.net/page.aspx/267/how-to-use-http-detailed-errors-in-iis-70/

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

Hades666
0
 

Author Comment

by:viperman67
ID: 37024008
Hi,

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 - http://screencast.com/t/oOTrY99VT3

trace logs indicate double php mapping - http://screencast.com/t/vJemDR4OSstU

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.

Thanks.
0
 

Accepted Solution

by:
viperman67 earned 0 total points
ID: 37685045
Hi,

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.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
MS Outlook undoubtedly is the most widely used email client.Its user-friendliness, cost effectiveness, and availability with Microsoft Office Suite make it the most popular email application.  Its compatibility with Microsoft applications like Exch…
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.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

864 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