Reputation: 1382
Trying to get started with Visual Studio 2019 Performance Profiler to find memory leaks in an ASP.NET Core Web API application.
So, I choose the "memory usage" checkbox from the list.
Taking snapshots works fine too but when I click on "stop collection" button, I get a popup alert as "No Managed Heap data was collected. This feature requires .NET v4.5 or greater".
I tried installing .NET 4.5 but I do have 4.8 (as the installer reports).
Any clue on how I could get this thing working?
I am also interested to explore free/open source memory profiler alternatives.
Upvotes: 0
Views: 520
Reputation: 1382
I was using IIS express to debug/profile. For anyone facing this issue, use Kestrel(i.e. name of your application while choosing to debug profile).
Upvotes: 1
Reputation: 240
Could it be document %windir%\system32\mscoree.dll and %windir%\SysWOW64\mscoree.dll. The file corresponding to the higher version could not be applied during the installation process, and it is still another lower version.
Upvotes: 0