Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS 8 - 500 server error logs

I have a desktop application that makes a call to an asp page on the web server. The web server is currently returning a 500 server error and I cannot figure out how to get more detail.

There doesnt seem to be anything in the Event Viewer: Windows Logs->application.

Is there a setting I can make or another place I can find logs? Seems like this would be a typical issues but I cannot find any information on this.

(Also, the stack trace does not come through to the client application)

like image 429
user1373121 Avatar asked Dec 30 '14 22:12

user1373121


People also ask

How do I get a detailed 500 error?

Double click "ASP" in the site's Home screen in IIS admin, expand "Debugging Properties", enable "Send errors to browser", and click "Apply". Under "Error Pages" on the home screen select "500", then "Edit feature settings" and select "Detailed Errors".

Where are IIS error logs stored?

IIS log files are stored by default in the %SystemDrive%\inetpub\logs\LogFiles folder of your IIS server. The folder is configured in the Directory property on the Logging page for either the server or an individual site.


2 Answers

You can enable "trace logging" on IIS Manager. It fill create bunch of XML files you can easily investigate using IE installed on the server. (other browsers may fail to process xslt style files)

From Technet:

  1. Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see IIS 7.0: Open IIS Manager. For information about navigating to locations in the UI, see IIS 7.0: Navigation in IIS Manager.
  2. In the Connections pane, click Sites.
  3. In Features View, select the site for which you want to enable trace logging.
  4. In the Actions pane, under ``Configure, click Failed Request Tracing.
  5. In the Edit Web Site Failed Request Tracing Settings dialog box, select Enable to enable logging for this site.
  6. In the Directory text box, type the path where you want to store the log files or click the browse button (...) to find a location on the computer. The default is %SystemDrive%\inetpub\logs\FailedReqLogFiles.
  7. In the Maximum number of trace files text box, type the maximum number of trace log files that you want to keep, and then click OK.

enter image description here

PS: don't bother IIS 7.0, almost same as IIS 8.x

like image 96
atakan Avatar answered Sep 23 '22 07:09

atakan


This should be a comment but comments don't let me add an image.

This is a screenshot of Matt Browne's comment. Upvote his comment if you find this helpful.

If you don't see the "Failed Request Tracing Rules" button, then you need to enable "Tracing" tracing in Server roles.

Here it is:

enter image description here

There is also this configuration that needs to be set:

enter image description here

I had to restart my machine in order for the server configuration to be recognized in IIS.

like image 27
Be Kind To New Users Avatar answered Sep 20 '22 07:09

Be Kind To New Users