I’m Currently using MiniProfiler V3 with WebAPI (Owin), how I’m seeing at times intermittently errors related to the using MiniProfiler.Stop(). Actual Exception:
Object reference not set to an instance of an object. at StackExchange.Profiling.MiniProfiler.StopImpl() in c:\TeamCity\buildAgent\work\a743336045964cbc\StackExchange.Profiling\MiniProfiler.cs:line 485
I’m using the SingletonProfileProvider, from what I read this is not considered thread safe but not sure what the alternative as I had a look around but seems a bit all over the place. If I don’t use this particular Provider then find my actual MiniProfiler.Current instance is always null. Any ideas?