No data appears (.NET)

Problem

After generating traffic for your app and waiting five minutes, none of your .NET agent data appears in the New Relic UI.

Solution

The absence of data may occur for several reasons.

Basic solutions

To troubleshoot the most common reasons for missing data, try these solutions as applicable.

Basic solutions Comments
.NET Core 2.0 agent: Check Kestrel requirements.

Make sure you are using a Kestrel app/web server supported by New Relic. Otherwise, you may need to use the .NET Framework agent for your web/app server.

.NET Core 2.0 agent: Check environment variables.

Make sure you have configured all the required environment variables, then restart the agent.

.NET Framework agent: Restart IIS.

If your app is not receiving traffic, no data will be reported to New Relic. To restart IIS:

  1. From a command line, run IISRESET.
  2. Verify that traffic is being sent to your application.
Run New Relic Diagnostics. To try to automatically identify the issue, use New Relic Diagnostics.
Check for profiler conflicts. If you are using Microsoft's System Center Operations Manager (SCOM), follow the troubleshooting procedures to resolve .NET and SCOM conflicts.
Review log files. If log files exist, open them and review for errors.

Advanced solutions

To remedy more complex issues when no data appears, try these solutions as applicable:

Advanced solutions Comments
.NET Framework agent: Check Registry permissions. Check for a registry key permissions error.
.NET Framework agent: Run Windows Event Viewer.

If applicable:

  1. Run the Windows Event Viewer, and look for application events from the New Relic .NET Profiler.
  2. Search for messages whose source is the New Relic .NET Profiler or New Relic .NET agent.
  3. If there are no New Relic event messages, look for messages from the .NET Runtime.

For more information, see No data or event log: CoCreate errors.

Get debug logs. If your logs did not show errors, increase the logging level temporarily to collect debug logs.
Check proxy settings. Ensure your proxy settings are correct and that your settings include a host attribute.
Check .NET agent directories. If you are running both the .NET Framework agent and the .NET Core agent on the same system, make sure they have separate directories.
Get additional help. If data still does not appear, get support at support.newrelic.com.

For more help

Recommendations for learning more: