How to debug a 500 error when opening a website (applicable to Windows systems)

Published: 2003-09-26

```html

There are many reasons for a 500 error. Generally speaking, if a program has an error, a friendly error message will be returned to the user in the browser, collectively called a server 500 error. The solution is that you must be able to correctly obtain the error information in HTTP.

The method is: Please open the browser, select Tools, Internet Options, Advanced. In the Browsing section under Advanced, there is a "Show friendly HTTP error messages" checkbox. Please clear this checkbox so that you can obtain the correct error message. After obtaining the correct error message, you can check the specific cause of your error according to the error message. According to the specific cause of the error, perform corresponding debugging to resolve it.

图片.png

For WINDOWS2008/2012 IIS7.5, setting only the IE client is not enough; you also need to configure the server side. Steps to enable detailed error display:
Open IIS7.5 Manager -- click the site you need to configure -- Error Pages -- click "Edit Feature Settings" on the right, change it to  Detailed errors and save, as shown in the figure:

1.jpg

ASP programs require one more configuration step:

Click the site you need to configure -- ASP tab  In Debugging Properties, set Send Errors To Browser to true

1.jpg

```