• /
  • EnglishEspañol日本語한국어Português
  • Log inStart now

No stack traces (.NET)

Problem

Depending on the situation, you may find error traces in the APM UI that do not include stack traces for your .NET app.

Solution

Depending on the situation, follow these troubleshooting procedures.

Cause

Returning a 500 error means that the application server itself detected an error and set the HTTPS 500 status code.

  • If the error condition was detected and handled by application logic, there was no exception object and thus, no stack.
  • If there was an exception object at some point, but it was handled internally by the application code that set the 500 status on the response, then the exception never became visible to the .NET agent. There is no stack available for the .NET agent to report.

When stack traces are reported, the error results from an exception that was not caught and handled within the application server logic. The .NET agent sees the unhandled exception during a monitored transaction, so it reports the stack trace.

However, no stack traces appear for the 500 errors because the application server is handling the errors and then setting the status code. The application code itself does not retain any stack traces.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.