yodeski / mvc-mini-profiler

Automatically exported from code.google.com/p/mvc-mini-profiler
0 stars 0 forks source link

.NET 4.5 Problem ? [maybe] #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Installed .NET 4.5 and EF 4.3.1 [hadn't seen this error before I did that] and 
started getting the follow error in my sln.

Not sure what's causing it ?

<-- System.NullReferenceException:Object reference not set to an instance of an 
object. Stack Trace:    at MvcMiniProfiler.MiniProfiler.AddSqlTiming(SqlTiming 
stats) in 
C:\Users\sam\Desktop\mvc-mini-profiler\MvcMiniProfiler\MiniProfiler.cs:line 266 
    at MvcMiniProfiler.SqlTiming..ctor(DbCommand command, ExecuteType type, 
MiniProfiler profiler) in 
C:\Users\sam\Desktop\mvc-mini-profiler\MvcMiniProfiler\SqlTiming.cs:line 137    
 at MvcMiniProfiler.SqlProfiler.ExecuteStartImpl(DbCommand command, ExecuteType 
type) in 
C:\Users\sam\Desktop\mvc-mini-profiler\MvcMiniProfiler\SqlProfiler.cs:line 41   
  at MvcMiniProfiler.Data.ProfiledDbCommand.ExecuteDbDataReader(CommandBehavior 
behavior) in 
C:\Users\sam\Desktop\mvc-mini-profiler\MvcMiniProfiler\Data\ProfiledDbCommand.cs
:line 158     at 
System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityComm
and entityCommand, CommandBehavior behavior) ....

Original issue reported on code.google.com by timo...@gmail.com on 6 Mar 2012 at 2:36

GoogleCodeExporter commented 9 years ago
I've found that this happens when one user has profiling enabled, and another 
doesn't.  I'm using .NET 4, and EF 4.3.1 also.

Original comment by andy.edi...@gmail.com on 19 Mar 2012 at 5:15

GoogleCodeExporter commented 9 years ago
It also looks like this is fixed in the latest source: 
https://github.com/SamSaffron/MiniProfiler/blob/master/StackExchange.Profiling/M
iniProfiler.IDbProfiler.cs#L85

Original comment by andy.edi...@gmail.com on 19 Mar 2012 at 5:24

GoogleCodeExporter commented 9 years ago
well theory is that it is fixed now ... closing 

Original comment by sam.saff...@gmail.com on 3 Apr 2012 at 4:23