Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Expected Agent product to be New Relic .NET CoreCLR Agent, but it was New Relic .NET Agent


#1

Greetings.
I am trying to profile my windows service (build in a console app form though) that is using .Net Core 2.2 and is on Windows Server 2016 Data Center. I finished installing .Net Agent with Nuget Package that’s V8.21.34
I also followed the instruction of https://docs.newrelic.com/docs/agents/net-agent/install-guides/install-net-agent-using-nuget for setting up environment variables, i.e.

CORECLR_ENABLE_PROFILING=1
CORECLR_PROFILER={36032161-FFC0-4B61-B559-F6C5D41BAE5A}
CORECLR_PROFILER_PATH=APP_DEPLOYMENT_DIRECTORY\newrelic\NewRelic.Profiler.dll
CORECLR_NEWRELIC_HOME=APP_DEPLOYMENT_DIRECTORY\newrelic
NEW_RELIC_LICENSE_KEY=YOUR_LICENSE_KEY
NEW_RELIC_APP_NAME=YOUR_APP_NAME

Here is the problem. When I start my service, the Agent does product a log, but the content is this:

[Info ] 2019-12-04 22:07:08 Logger initialized.
[Trace] 2019-12-04 22:07:08 New Relic .NET CoreCLR Agent
[Trace] 2019-12-04 22:07:08 Initializing ThreadProfiler
[Info ] 2019-12-04 22:07:08 Found newrelic.config at: E:\Octopus\Applications\Performance\MSGenXBriefReportsListener_FleetComplete.MS.GenX.BriefReports.Listener\1.0.0.33-2019.12.1.40-HotFix_1\newrelic\newrelic.config
[Info ] 2019-12-04 22:07:08 <-- New logging level set: Info
[Error] 2019-12-04 22:07:08 Expected Agent product to be New Relic .NET CoreCLR Agent, but it was New Relic .NET Agent
[Error] 2019-12-04 22:07:08 Incorrect agent product

Also, I got similar Failure Message from New Relic Diag:

Failure - DotNetCore/Agent/Installed
The .NET CoreCLR agent is not installed in C:\ProgramData\New Relic.NET Agent
Failure - DotNet/Requirements/RequirementCheck
Detected failed DotNet Agent requirement checks. Failed checks:

I searched yet cannot see another tool that is called “New Relic .NET CoreCLR Agent”, isn’t it installed with the .Net Agent? Or do I need extra configuration in order to let New Relic identify .Net CoreCLR Agent?


#2

Hi @qingtian.wang - It sounds like you have installed the .Net agent which is not compatible with .Net Core apps. Try installing the .Net Core agent.


#3

Hey @qingtian.wang - were you able to get the .Net Core agent installed as Stefan suggested?