I'm running Nunit with this profiler settings in 32bit. In the event log, it clearly shows that the profiler is running.But when I run "Mock.IsProfilerEnabled", it returns false. When I tried to create a sealed class, it said "Telerik.JustMock.MockException : Could not create mock from sealed class when profiler is not enabled.". The strange thing is, it was working at one point yesterday. Today, reboot the machine a couple of times, now it doesn't work.
Environment Variables
set COR_ENABLE_PROFILING=0x1
set COR_PROFILER={D1087F67-BEE8-4f53-B27A-4E01F64F3DA8}
(I tried without COMPLUS_ProfAPI_ProfilerCompatibilitySetting too.)
set COMPLUS_ProfAPI_ProfilerCompatibilitySetting=EnableV2Profiler
EVENT LOG
.NET Runtime version 4.0.30319.239 - The profiler was loaded successfully. Profiler CLSID: '{D1087F67-BEE8-4f53-B27A-4E01F64F3DA8}'. Process ID (decimal): 6968. Message ID: [0x2507].
NUnit 2.5.10.11092
JustMock 2011.2.713.2
Window 7 x64. The application is in 32bit mode, .NET 4.0