Error while profiling .net core web api in staging machine - ANts profiling

RedGate.Profiler.Engine.Startup.Counters.WindowsPerfCounter - Error while trying to read performance counter data
System.InvalidOperationException: Instance 'dotnet#9' does not exist in the specified Category.
   at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName)
   at System.Diagnostics.PerformanceCounter.NextSample()
   at RedGate.Profiler.Engine.Startup.Counters.WindowsPerfCounter.NextSample()
24 Sep 2018 08:08:24.873 [29] WARN  RedGate.Profiler.Engine.Startup.Counters.WindowsPerfCounter - Error while trying to read performance counter data
System.InvalidOperationException: Instance 'dotnet#8' does not exist in the specified Category.
   at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName)
   at System.Diagnostics.PerformanceCounter.NextSample()
   at RedGate.Profiler.Engine.Startup.Counters.WindowsPerfCounter.NextSample()
Tagged:

Best Answer

  • Jessica RJessica R Posts: 1,319 Rose Gold 4
    Hi @chitchat,

    Thanks for your post!

    That error in the log files usually comes up while the profile process is stopping (whether it has crashed or was stopped normally), but it normally shouldn't cause any issues in the profiled application.

    Just to confirm- is your .NET Core web application crashing when you are profiling it?

    Can you please try updating to the latest profiler version (if you're not on it already) from Help>Check for updates to see if the crash persists?

    If so, can you kindly check Event Viewer>Windows log>Application for any errors regarding the profiler or your application? That will hopefully shed more light!

    Can I also just check--does the profiler give an option to send in an an error report to Redgate once it has crashed your application? If so, can you please send one in with your email address included?



    Jessica Ramos | Product Support Engineer | Redgate Software

    Have you visited our Help Center?


Sign In or Register to comment.