Questions tagged [mvc-mini-profiler]

A simple but effective mini-profiler for ASP.NET, WCF and the .NET platform

A simple but effective mini-profiler for ASP.NET, WCF and the .NET platform. It has been designed to be small and unobtrusive and thus to be suitable for production code profiling. Read the introduction.

Installing the mini-profiler can most easily be done using its NuGet package:

Install-Package MiniProfiler
388 questions
8
votes
1 answer

Can't get MVC MiniProfiler to show on ASP.net website

My web.config file:
Tom Gullen
  • 61,249
  • 84
  • 283
  • 456
8
votes
1 answer

Can the ServiceStack MiniProfiler show SQL parameter values, not just the bound parameter names?

I've got the ServiceStack MiniProfiler enabled in my AppHost (in Application_Start), and I can view the SQL generated by OrmLite in my page. (using SS v3.9.59.0) What I can't see in the profile trace is the values of bound parameters. So if OrmLite…
8
votes
1 answer

Can I use MiniProfiler to instrument an ASP.NET MVC WebApi website?

The ASP.NET MVC website I'm working on has some (Controller-derived) "user" pages and some (ApiController-derived) "api" pages. The site uses MiniProfiler to instrument the "user" pages, and I really like what it does. I'd like to have the same or…
Gary McGill
  • 26,400
  • 25
  • 118
  • 202
8
votes
1 answer

MiniProfiler and SqlMembershipProvider

I am trying to get any DB queries that happen when using the SqlMembershipProvider to show in MiniProfiler but I can't think of any way to swap out the SqlConnection is uses with a ProfiledDbConnection as it seems to do everything internally. Anyone…
Martyn
  • 229
  • 2
  • 12
7
votes
1 answer

Stepping MVC Mini Profiler without nested usings

We're modelling a complicated system based around a complicated entity relationship in Dynamics CRM 4.0 Due to the nature of development we've had to implement a repository style pattern and have lots of different providers that relate to each…
Russ Clarke
  • 17,511
  • 4
  • 41
  • 45
7
votes
2 answers

Getting MVC mini-profiler timings into async tasks

I have a long running SQL query inside a page that I've sped up by using an async task: using System.Threading.Tasks; ... var asyncTask = new Task( () => { using (var stepAsync = MiniProfiler.Current.Step("Async!")) …
Keith
  • 150,284
  • 78
  • 298
  • 434
7
votes
1 answer

How do I configure mvc-mini-profiler to work with a DbContext that passes the connection string name to the base?

My DbContext ctor looks like this: public class FnordDbContext : DbContext { public FnordDbContext() : base("Fnord") { } /* stuff */ } And my mvc-mini-profiler bootstrapper looks like this: var sqlConnectionFactory = new…
half-ogre
  • 594
  • 3
  • 7
7
votes
2 answers

mvc-mini-profiler - working with a load balanced web role (azure et al)

I believe that the mvc mini profiler is a bit of a 'God-send' I have incorporated it in a new MVC project which is targeting the Azure platform. My question is - how to handle profiling across server (role instance) barriers? Is this is even…
Andrew Harry
  • 13,773
  • 18
  • 67
  • 102
7
votes
1 answer

MVC-Mini-Profiler falsely showing duplicate queries

I have been playing around with MVC-Mini-Profiler, and found it very useful. However, on all pages I trace on, I get reports of duplicate queries, like the one below. However, I have traced the queries in SQL Server Profiler, and there is not doubt…
Kjensen
  • 12,447
  • 36
  • 109
  • 171
7
votes
1 answer

StackExchange MiniProfiler UrlRoutingModules does not implement IHttpHandlerFactory

Miniprofiler on my site has stopped working. In Chrome console, I get a 500 error on: /mini-profiler-resources/includes.js?v=4.0.0.0 The error is: Server Error in '/' Application. System.Web.Routing.UrlRoutingModule does not implement …
Tom Gullen
  • 61,249
  • 84
  • 283
  • 456
7
votes
1 answer

Why might I not be getting any results from MiniProfiler?

I can't seem to get any results from MiniProfiler. I can see the XHR POST to /mini-profiler-resources/results returning a 404. The chrome request inspector gives me a standard server 404 page. A GET on the same URL also returns a 404, but there…
Martin Hansen Lennox
  • 2,837
  • 2
  • 23
  • 64
7
votes
1 answer

How to remove specific URL's from profiling when using MiniProfiler

Sometimes when using the miniprofiler, there's just some requests that you doesn't care about. In my case I don't care much about signalr, umbraco pings, and some requests made when I wanna know if the user is idle or not. To avoid the miniprofiler…
Squazz
  • 3,912
  • 7
  • 38
  • 62
7
votes
1 answer

Why does Dapper generate different SQL for Postgres with/without a mini-profiler connection

Dapper (1.13 Noobget Package) creates different SQL statements depending on if it's used with a plain ADO.NET database connection or with a decorated mini-profiler database connection. Example code (tested with Postgresql) Usings: using…
stmax
  • 6,506
  • 4
  • 28
  • 45
7
votes
1 answer

Poor WebAPI performance

I recently converted our existing ASP.NET MVC 2 application to MVC 4 with a WebAPI backend. Unfortunately though, I have been noticing some severe performance issues in regards to WebAPI. I have MiniProfiler setup and added some steps to see if I…
Josh Sullivan
  • 1,066
  • 9
  • 11
7
votes
2 answers

Mini Profiler integrate with SqlConnection

I have an existing db connection function in a web forms app that I would like to integrate with mini profiler. I have mini profiler installed and running on the app, but I cannot seem to get the database portion connected properly. Below is part of…
corymathews
  • 12,289
  • 14
  • 57
  • 77