Problem
After you generate traffic and wait a few minutes, your .NET application does not report data to New Relic. In addition, there is no New Relic profiler log for your .NET app.
Importante
If you are an Azure Websites user experiencing CoCreateInstance
errors, get support at support.newrelic.com.
Solution
To verify whether New Relic has the necessary permissions and resolve the problem, follow these troubleshooting steps.
To verify whether the permissions error is due to profiler errors:
Check your application event log for errors like this:
NET Runtime version 4.0.30319.296 - Loading profiler failed during CoCreateInstance. Profiler CLSID: '{71DA0A04-7777-4EC6-9643-7D28B46A8A41}'Compare the CLSID in the error to New Relic's CLSIDs:
{71DA0A04-7777-4EC6-9643-7D28B46A8A41} (agent for .NET Framework){36032161-FFC0-4B61-B559-F6C5D41BAE5A} (agent for .NET Core)Do one of the following:
- If the CLSID does not match, uninstall the other profiler.
- If the CLSID does match, continue with this procedure to check the profiler logs for
CoCreateInstance
permissions errors.
To verify that the New Relic assemblies are attached to the w3wp.exe
process:
On the server where your app is installed, download the Microsoft Windows Sysinternals Process Explorer.
Unzip the file and run
procexp.exe
as an Administrator.Select View > Show Lower Pane, then select View > Lower Pane View > DLLs.
Generate some traffic to your app.
To update the process list, select View > Refresh Now.
In the top pane, select your service or
w3wp
instance (typically nested under asvchost.exe
process).In the bottom pane, look for assemblies whose names begin with
NewRelic
, including:NewRelic.Agent.Core.dllNewRelic.Profiler.dllNewRelic.Agent.IL.dllNewRelic.ICSharpCode.SharpZipLib.dllNewRelic.Json.dllNewRelic.Log.dllIf you do not find any assemblies, get support at support.newrelic.com
Verify that the w3wp.exe
environment details are this:
COR_ENABLE_PROFILING=1COR_PROFILER={71DA0A04-7777-4EC6-9643-7D28B46A8A41}NEWRELIC_INSTALL_PATH=C:\Program Files\New Relic\.NET Agent\
Check for profiler logs in %ALLUSERSPROFILE%\New Relic\.NET Agent\Logs
.
- Make sure there are no profiler logs for the web app you are troubleshooting.
- If you have a simple or default site installation, ignore any profiler logs for other web apps.
If all the above conditions are present, you have a permissions error. Use any of these options to resolve the permissions error as applicable:
Available options | Resolve permissions errors |
---|---|
Set permissions for the Everyone group. | Adjust permissions in the following folders for the Everyone group to give the group all permissions except
|
Set permissions for individual users. | If your security policies do not allow adjusting permissions for the Everyone group, then adjust permissions for individual users. Record the users under which your application runs, then adjust permissions for each of those users. |
Set permissions using the PowerShell script. | To add permissions to bash
For 32-bit apps, the path would be |