Debug Windows Service

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.
Post Reply
randyshoopman

Debug Windows Service

Post by randyshoopman » Tue Aug 23, 2011 1:14 am

I keep getting the following Event Log error when trying to debug a windows service. The service is successfully started but the the "Waiting for profiled process to start" never returns.

.NET Runtime version 4.0.30319.235 - Loading profiler failed. COR_ENABLE_PROFILING was set properly, but COR_PROFILER was not. COR_PROFILER must be set to the CLSID of the profiler to load. Process ID (decimal): 4568. Message ID: [0x2500].

The registry Environment value for the service is:

cor_profiler_path=
coreclr_enable_profiling=1
netprofiler_pipename=\\.\pipe\NETProfilerPipe_d9453c83-6d86-4188-b652-2270628799f2
cor_enable_profiling=1
coreclr_profiler={E82491FC-2234-4FFC-BC73-D05B27FF3B0F}
coreclr_profiler_path=
cor_profiler={E82491FC-2234-4FFC-BC73-D05B27FF3B0F}

Also,

HKEY_CLASSES_ROOT\CLSID\{E82491FC-2234-4FFC-BC73-D05B27FF3B0F}\InprocServer32
(Default)=C:\Program Files\SciTech\NetMemProfiler4\64Bit\ProfilerCallback.dll

The service is written in .net 4. Any ideas why it won't work?

Andreas Suurkuusk
Posts: 1028
Joined: Wed Mar 02, 2005 7:53 pm

Re: Debug Windows Service

Post by Andreas Suurkuusk » Tue Aug 23, 2011 9:00 pm

Thanks for reporting this problem. It appears like we have introduced a bug related to service profiling when fixing another one in NmpCore. We have managed to reproduce the problem, and we will try to fix it as soon as possible. Hopefully a fix will be available by tomorrow.
Best regards,

Andreas Suurkuusk
SciTech Software AB

Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests