entity framework - Using MiniProfiler in ASP.NET MVC 4 with EF5 -


i tried ef tracing provider check sql statements generated, want use miniprofiler, i'm not able see results...

what made far:

  • intalled packages: enter image description here

  • uncomment initialization in miniprofiler.cs

public static void prestart() {     //...     //todo: if profiling ef code first try:      miniprofileref.initialize();     //... } 
  • added render in layout view (before closing body tag):

    @miniprofiler.renderincludes() 

but nothing showing in browser relative miniprofiler... i'm using database-first approach.

am missing something?

the following code should added in web.config:

<system.webserver>     <validation validateintegratedmodeconfiguration="false" />     <handlers>       //...     <add name="miniprofiler" path="mini-profiler-resources/*" verb="*" type="system.web.routing.urlroutingmodule" resourcetype="unspecified" precondition="integratedmode" />     </handlers>   </system.webserver> 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -