# .NET

**URL:** https://community.miniprofiler.com/c/net/3.md

[Latest](https://community.miniprofiler.com/latest.md) · [Categories](https://community.miniprofiler.com/categories.md)

---

## [Category definition for .NET](https://community.miniprofiler.com/t/category-definition-for-net/167)

<div class="topic-metadata">

**Author:** [@sam](https://community.miniprofiler.com/u/sam)\
**Replies:** 0

</div>

Topics specific to the .NET version of MiniProfiler

---

## [I want Help with MiniProfiler in .NET](https://community.miniprofiler.com/t/i-want-help-with-miniprofiler-in-net/666)

<div class="topic-metadata">

**Author:** [@faelannm](https://community.miniprofiler.com/u/faelannm)\
**Replies:** 0\
**Last updated:** [March 1, 2025, 1:27pm UTC](https://community.miniprofiler.com/t/i-want-help-with-miniprofiler-in-net/666 "2025-03-01T13:27:55Z")

</div>

Hey everyone, I have been trying to integrate MiniProfiler into my .NET application but I am facing some unexpected behavior. I followed the setup instructions & while the profiler seems to be working; I am not seeing t…

---

## [Can I limit the number of timings stored by MiniProfiler (for .NET)?](https://community.miniprofiler.com/t/can-i-limit-the-number-of-timings-stored-by-miniprofiler-for-net/653)

<div class="topic-metadata">

**Author:** [@fustercluck](https://community.miniprofiler.com/u/fustercluck)\
**Replies:** 0\
**Last updated:** [March 31, 2022, 8:46pm UTC](https://community.miniprofiler.com/t/can-i-limit-the-number-of-timings-stored-by-miniprofiler-for-net/653 "2022-03-31T20:46:22Z")

</div>

Hi, Duplicating a unanswered question from StackOverflow in the hope that it might get an answer here: I’m using MiniProfiler in a .NET core app to time various stages in a 30 FPS video pipeline. This is a long-running…

---

## [Issue with buffering requests when MiniProfiler is enabled](https://community.miniprofiler.com/t/issue-with-buffering-requests-when-miniprofiler-is-enabled/651)

<div class="topic-metadata">

**Author:** [@asovde](https://community.miniprofiler.com/u/asovde)\
**Replies:** 0\
**Last updated:** [March 15, 2022, 9:54am UTC](https://community.miniprofiler.com/t/issue-with-buffering-requests-when-miniprofiler-is-enabled/651 "2022-03-15T09:54:58Z")

</div>

I’ve been testing out the MiniProfiler in a web api and have come across an issue when enabling buffering of requests. The buffering is enabled to be able to re-read the body of requests for logging purposes. Under the h…

---

## [Is it possible to save the results to an endpoint and post it through an api call](https://community.miniprofiler.com/t/is-it-possible-to-save-the-results-to-an-endpoint-and-post-it-through-an-api-call/639)

<div class="topic-metadata">

**Author:** [@DeepaPuranik](https://community.miniprofiler.com/u/DeepaPuranik)\
**Replies:** 0\
**Last updated:** [June 17, 2021, 9:01am UTC](https://community.miniprofiler.com/t/is-it-possible-to-save-the-results-to-an-endpoint-and-post-it-through-an-api-call/639 "2021-06-17T09:01:26Z")

</div>

We are using Miniprofiler with MVC web application with CMS(EPiServer). Is it possible to store the result to an endpoint rather than to any database and post it an api call within CMS?

---

## [Miniprofiler with non-mvc .net core project and angular](https://community.miniprofiler.com/t/miniprofiler-with-non-mvc-net-core-project-and-angular/633)

<div class="topic-metadata">

**Author:** [@arjun2364](https://community.miniprofiler.com/u/arjun2364)\
**Replies:** 0\
**Last updated:** [December 31, 2020, 7:29am UTC](https://community.miniprofiler.com/t/miniprofiler-with-non-mvc-net-core-project-and-angular/633 "2020-12-31T07:29:17Z")

</div>

Hi, I am using angular(9+) as frontend and .net core as backend. I have successfully implemented mini profiler in the backend and it is showing result in “/mini-profiler-resources/results” URL but in the frontend, I want…

---

## [Profile front-end to back-end for dotnet core webapi (not razor)](https://community.miniprofiler.com/t/profile-front-end-to-back-end-for-dotnet-core-webapi-not-razor/631)

<div class="topic-metadata">

**Author:** [@jcolebrand](https://community.miniprofiler.com/u/jcolebrand)\
**Replies:** 0\
**Last updated:** [December 23, 2020, 8:03pm UTC](https://community.miniprofiler.com/t/profile-front-end-to-back-end-for-dotnet-core-webapi-not-razor/631 "2020-12-23T20:03:05Z")

</div>

I wanted to see if there was any community guidance already on how to profile from a dotnet core mvc front-end to back-end for dotnet core webapi (not razor)? Am I just supposed to put the profiler on the backend and it…

---

## [Hook for OAuth 2 OIDC](https://community.miniprofiler.com/t/hook-for-oauth-2-oidc/621)

<div class="topic-metadata">

**Author:** [@Vaccano](https://community.miniprofiler.com/u/Vaccano)\
**Replies:** 0\
**Last updated:** [December 3, 2019, 11:29pm UTC](https://community.miniprofiler.com/t/hook-for-oauth-2-oidc/621 "2019-12-03T23:29:35Z")

</div>

I have added MiniProfiler to my ASP.NET Core Web API service. This service is called by a SPA application. The application passes a Bearer Token back to the service. (Using Open ID Connect (OIDC). Is there a way to h…

---

## [When asp.net core minprifilter storage in MySqlStorage，it can not find ef‘s sql analyse](https://community.miniprofiler.com/t/when-asp-net-core-minprifilter-storage-in-mysqlstorage-it-can-not-find-ef-s-sql-analyse/618)

<div class="topic-metadata">

**Author:** [@1257960069](https://community.miniprofiler.com/u/1257960069)\
**Replies:** 0\
**Last updated:** [September 27, 2019, 5:13am UTC](https://community.miniprofiler.com/t/when-asp-net-core-minprifilter-storage-in-mysqlstorage-it-can-not-find-ef-s-sql-analyse/618 "2019-09-27T05:13:33Z")

</div>

(upload://4ZLqSUnGiFhldqFVDqzwvXo4qlr.png) the second picture can not find ef‘s sql analyse

---

## [MiniProfiler V3 - WebAPI profiling Issue possibly related thread safety](https://community.miniprofiler.com/t/miniprofiler-v3-webapi-profiling-issue-possibly-related-thread-safety/616)

<div class="topic-metadata">

**Author:** [@rubans](https://community.miniprofiler.com/u/rubans)\
**Replies:** 0\
**Last updated:** [August 30, 2019, 7:40am UTC](https://community.miniprofiler.com/t/miniprofiler-v3-webapi-profiling-issue-possibly-related-thread-safety/616 "2019-08-30T07:40:08Z")

</div>

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. …

---

## [MiniProfiler ef6 not profiling execurestorecommand](https://community.miniprofiler.com/t/miniprofiler-ef6-not-profiling-execurestorecommand/610)

<div class="topic-metadata">

**Author:** [@tdo](https://community.miniprofiler.com/u/tdo)\
**Replies:** 0\
**Last updated:** [February 12, 2019, 5:02pm UTC](https://community.miniprofiler.com/t/miniprofiler-ef6-not-profiling-execurestorecommand/610 "2019-02-12T17:02:05Z")

</div>

Hi, Miniprofiler.Ef6 is working great, but it’s only profiling generated linq2sql statement but not storedprocedure call thru dbcontext.ExecuteStoreCommand(). Am i missing anything? Thanks

---

## [Mini Profiler SQL Timings are 0.0 ms MySQL Using ExecuteReaderAsync()](https://community.miniprofiler.com/t/mini-profiler-sql-timings-are-0-0-ms-mysql-using-executereaderasync/605)

<div class="topic-metadata">

**Author:** [@Eggymundo](https://community.miniprofiler.com/u/Eggymundo)\
**Replies:** 0\
**Last updated:** [February 5, 2019, 3:04pm UTC](https://community.miniprofiler.com/t/mini-profiler-sql-timings-are-0-0-ms-mysql-using-executereaderasync/605 "2019-02-05T15:04:36Z")

</div>

I use Mini Profiler with EF6 and all operations report my timings. However for some really complicated queries I use ADO.Net inline with “ProfiledDbConnection”. My project is .NET 4.5.2 (pre-standard) Mini Profiler ve…

---

## [MiniProfiler.Shared .NET 4.6.1 dependency on Microsoft.Extensions.DependencyInjection.Abstractions which supports only .NET Standard (Core)](https://community.miniprofiler.com/t/miniprofiler-shared-net-4-6-1-dependency-on-microsoft-extensions-dependencyinjection-abstractions-which-supports-only-net-standard-core/594)

<div class="topic-metadata">

**Author:** [@korayem](https://community.miniprofiler.com/u/korayem)\
**Replies:** 1\
**Last updated:** [October 13, 2018, 11:07am UTC](https://community.miniprofiler.com/t/miniprofiler-shared-net-4-6-1-dependency-on-microsoft-extensions-dependencyinjection-abstractions-which-supports-only-net-standard-core/594 "2018-10-13T11:07:47Z")

</div>

I have a .NET 4.6.1 project and when I try to update miniprofiler to latest version it fails for the following reason: update-package : Could not install package ‘Microsoft.Extensions.DependencyInjection.Abstractions 2…

---

## [EF Core 2.1 and Npgsql problems](https://community.miniprofiler.com/t/ef-core-2-1-and-npgsql-problems/599)

<div class="topic-metadata">

**Author:** [@hudo](https://community.miniprofiler.com/u/hudo)\
**Replies:** 0\
**Last updated:** [August 6, 2018, 6:57pm UTC](https://community.miniprofiler.com/t/ef-core-2-1-and-npgsql-problems/599 "2018-08-06T18:57:16Z")

</div>

Im using ASP.NET Core 2.1, EF Core 2.1.1 and Npgsql 2.1.1.1 and in Miniprofiler popup there’s no SQL or anything server related. Is that expected? I was looking for SQL statements … Thanks!

---

## [MongoDB is not being profiled on tiny test case](https://community.miniprofiler.com/t/mongodb-is-not-being-profiled-on-tiny-test-case/380)

<div class="topic-metadata">

**Author:** [@digitalpacman](https://community.miniprofiler.com/u/digitalpacman)\
**Replies:** 3\
**Last updated:** [February 5, 2018, 4:39pm UTC](https://community.miniprofiler.com/t/mongodb-is-not-being-profiled-on-tiny-test-case/380 "2018-02-05T16:39:23Z")

</div>

I have correct profiling with SQL and regular steps and custom steps. However the system doesn't seem to be logging MongoDB calls at all. I call this method 5 times every page load. public class SomeMongoSheet { …

---

## [Mini Profiler and Linq2DB in .NET MVC](https://community.miniprofiler.com/t/mini-profiler-and-linq2db-in-net-mvc/583)

<div class="topic-metadata">

**Author:** [@Kershaw](https://community.miniprofiler.com/u/Kershaw)\
**Replies:** 1\
**Last updated:** [January 12, 2018, 11:07pm UTC](https://community.miniprofiler.com/t/mini-profiler-and-linq2db-in-net-mvc/583 "2018-01-12T23:07:46Z")

</div>

I have a task to add miniprofiler to a .NET MVC 5 application. So far I have done this and it works: Installed NuGet packages for MiniProfiler and MiniProfiler.MVC4 Added @MiniProfiler.RenderIncludes() to shared V…

---

## [Retrieve results depending on URL of request](https://community.miniprofiler.com/t/retrieve-results-depending-on-url-of-request/578)

<div class="topic-metadata">

**Author:** [@bdrupieski](https://community.miniprofiler.com/u/bdrupieski)\
**Replies:** 0\
**Last updated:** [November 12, 2017, 1:42am UTC](https://community.miniprofiler.com/t/retrieve-results-depending-on-url-of-request/578 "2017-11-12T01:42:07Z")

</div>

I have two applications. One is ASP.NET WebForms and the other is WebAPI. Locally, both are hosted on the same port and both are set up to run MiniProfiler, meaning they both return a X-MiniProfiler-Ids header in their r…

---

## [Miniprofiler with multiple WCF (+MVC+EF6) doesn't work?](https://community.miniprofiler.com/t/miniprofiler-with-multiple-wcf-mvc-ef6-doesnt-work/574)

<div class="topic-metadata">

**Author:** [@MadSpindel](https://community.miniprofiler.com/u/MadSpindel)\
**Replies:** 0\
**Last updated:** [September 14, 2017, 6:46am UTC](https://community.miniprofiler.com/t/miniprofiler-with-multiple-wcf-mvc-ef6-doesnt-work/574 "2017-09-14T06:46:52Z")

</div>

I am trying to use Miniprofiler with our local dev environment. It works when the flow looks like this: MVC -\> WCF -\> EF6 But when we have our architecture that looks like this: MVC -\> Consumer WCF -\> System WCF -\> M…

---

## [Can I use mini profiler for ASP.NET Web API and have results still seen on URL?](https://community.miniprofiler.com/t/can-i-use-mini-profiler-for-asp-net-web-api-and-have-results-still-seen-on-url/365)

<div class="topic-metadata">

**Author:** [@jnystrom](https://community.miniprofiler.com/u/jnystrom)\
**Replies:** 2\
**Last updated:** [August 12, 2017, 2:32am UTC](https://community.miniprofiler.com/t/can-i-use-mini-profiler-for-asp-net-web-api-and-have-results-still-seen-on-url/365 "2017-08-12T02:32:56Z")

</div>

I am hitting an ASP.NET web api controller from a rest client, and I am not able to view the stats of this call in the Mini Profiler URL: /mini-profiler-resources/results. Is this not possible?

---

## [MaxJsonLength and JavaScriptSerializer](https://community.miniprofiler.com/t/maxjsonlength-and-javascriptserializer/405)

<div class="topic-metadata">

**Author:** [@dipolar](https://community.miniprofiler.com/u/dipolar)\
**Replies:** 1\
**Last updated:** [July 20, 2017, 11:58pm UTC](https://community.miniprofiler.com/t/maxjsonlength-and-javascriptserializer/405 "2017-07-20T23:58:48Z")

</div>

We've seen an issue where were occasionally get "Occasional exception with JSON JavaScriptSerializer “The length of the string exceeds \[maxJsonLength\]" We've changed Miniprofiler.Settings.maxJsonLength but we can see i…

---

## [IDEA: Chrome DevTools Extension & Retrieving Current Page JSON result](https://community.miniprofiler.com/t/idea-chrome-devtools-extension-retrieving-current-page-json-result/528)

<div class="topic-metadata">

**Author:** [@warrenbuckley](https://community.miniprofiler.com/u/warrenbuckley)\
**Replies:** 2\
**Last updated:** [March 20, 2017, 9:17am UTC](https://community.miniprofiler.com/t/idea-chrome-devtools-extension-retrieving-current-page-json-result/528 "2017-03-20T09:17:13Z")

</div>

Hello all, I had an idea of creating a Chrome DevTools extension to display the results in a new DevTools tab and would love to hear thoughts on this before I dive into it as a pet project. So the page instead of displ…

---

## [ASP.NET Linq To Sql - cannot make to work](https://community.miniprofiler.com/t/asp-net-linq-to-sql-cannot-make-to-work/557)

<div class="topic-metadata">

**Author:** [@knapek](https://community.miniprofiler.com/u/knapek)\
**Replies:** 0\
**Last updated:** [March 10, 2017, 1:25pm UTC](https://community.miniprofiler.com/t/asp-net-linq-to-sql-cannot-make-to-work/557 "2017-03-10T13:25:32Z")

</div>

Hello, I have this code in my project: Imports StackExchange.Profiling Partial Public Class myLinqDataContext Public Shared Function CreateNewContext() As myLinqDataContext Dim conn = New StackExchange.Profilin…

---

## [Is there any documentation to know about the mini-profiler information?](https://community.miniprofiler.com/t/is-there-any-documentation-to-know-about-the-mini-profiler-information/543)

<div class="topic-metadata">

**Author:** [@Ranjithninni](https://community.miniprofiler.com/u/Ranjithninni)\
**Replies:** 0\
**Last updated:** [July 13, 2016, 12:11pm UTC](https://community.miniprofiler.com/t/is-there-any-documentation-to-know-about-the-mini-profiler-information/543 "2016-07-13T12:11:07Z")

</div>

I cant understand the information provided by miniprofiler. Is there any documentation to learn about the miniprofiler information . If not,Please give a definition to the below image .

---

## [MiniProfiler with non-MVC Angular app and WebAPI -- how to get started?](https://community.miniprofiler.com/t/miniprofiler-with-non-mvc-angular-app-and-webapi-how-to-get-started/541)

<div class="topic-metadata">

**Author:** [@SeanKilleen](https://community.miniprofiler.com/u/SeanKilleen)\
**Replies:** 0\
**Last updated:** [July 7, 2016, 3:19pm UTC](https://community.miniprofiler.com/t/miniprofiler-with-non-mvc-angular-app-and-webapi-how-to-get-started/541 "2016-07-07T15:19:21Z")

</div>

Cross-posted On StackOverflow. Hi all, I'm trying to throw MiniProfiler into my current stack. I think I'm mostly setup, but am missing the UI approach and would like recommendations on the best way to proceed. Cur…

---

## [What can I do with MVC5+EF6+MySQL to see the MySQL.sql script?](https://community.miniprofiler.com/t/what-can-i-do-with-mvc5-ef6-mysql-to-see-the-mysql-sql-script/449)

<div class="topic-metadata">

**Author:** [@HelloMini](https://community.miniprofiler.com/u/HelloMini)\
**Replies:** 0\
**Last updated:** [May 13, 2016, 5:58am UTC](https://community.miniprofiler.com/t/what-can-i-do-with-mvc5-ef6-mysql-to-see-the-mysql-sql-script/449 "2016-05-13T05:58:25Z")

</div>

What can I do with MVC5+EF6+MySQL to see the MySQL.sql script? With EF6+SQLServer ,i can see the sql script,but with EF6+MySQL i can't see generate mysql script ,is miniprofiler support EF+MySQL ? If support ,what can I …

---

## [MVC specific profiling not appearing in UI](https://community.miniprofiler.com/t/mvc-specific-profiling-not-appearing-in-ui/403)

<div class="topic-metadata">

**Author:** [@rewmu](https://community.miniprofiler.com/u/rewmu)\
**Replies:** 1\
**Last updated:** [May 5, 2016, 5:28am UTC](https://community.miniprofiler.com/t/mvc-specific-profiling-not-appearing-in-ui/403 "2016-05-05T05:28:28Z")

</div>

I’ve installed MiniProfiler, the EF6 package and the MVC4 package and I’m getting the SQL and the client events in the UI but I’m missing the MVC related information about the controllers and the views. Is there somethin…

---

## [New release of .Net MiniProfiler](https://community.miniprofiler.com/t/new-release-of-net-miniprofiler/444)

<div class="topic-metadata">

**Author:** [@macpak](https://community.miniprofiler.com/u/macpak)\
**Replies:** 0\
**Last updated:** [March 14, 2016, 11:37am UTC](https://community.miniprofiler.com/t/new-release-of-net-miniprofiler/444 "2016-03-14T11:37:39Z")

</div>

Hi, We'd like to use the newest version of the .Net MiniProfiler, however it has one serious bug (fixed here https://github.com/MiniProfiler/dotnet/pull/104). So the questions is, when are you going to release a new ve…

---

## [Using inside loops (foreach, etc)](https://community.miniprofiler.com/t/using-inside-loops-foreach-etc/436)

<div class="topic-metadata">

**Author:** [@patated](https://community.miniprofiler.com/u/patated)\
**Replies:** 3\
**Last updated:** [March 10, 2016, 11:59pm UTC](https://community.miniprofiler.com/t/using-inside-loops-foreach-etc/436 "2016-03-10T23:59:10Z")

</div>

Long story short, I'm a Java developer who's been thrown a C# project because "it's kinda similar, right?" as we've lost our sole C# developer. Never done C# before. This is probably a fairly basic question, I expect it'…

---

## [Exception using EF6](https://community.miniprofiler.com/t/exception-using-ef6/253)

<div class="topic-metadata">

**Author:** [@rolandomartinez](https://community.miniprofiler.com/u/rolandomartinez)\
**Replies:** 3\
**Last updated:** [March 1, 2016, 12:12am UTC](https://community.miniprofiler.com/t/exception-using-ef6/253 "2016-03-01T00:12:35Z")

</div>

Hi, I got MiniProfiler.EF6 3.0.10-beta4 package and at moment to run the app. I got this exception: "An exception of type 'System.InvalidOperationException' occurred in EntityFramework.dll but was not handled in user c…

---

## [Considering OWIN middleware and security enhancements for .NET](https://community.miniprofiler.com/t/considering-owin-middleware-and-security-enhancements-for-net/408)

<div class="topic-metadata">

**Author:** [@tillig](https://community.miniprofiler.com/u/tillig)\
**Replies:** 2\
**Last updated:** [November 5, 2015, 6:06pm UTC](https://community.miniprofiler.com/t/considering-owin-middleware-and-security-enhancements-for-net/408 "2015-11-05T18:06:50Z")

</div>

On a project I'm working on right now we're looking at a Glimpse or MiniProfiler sort of solution to help us get some information about what's going on inside from a client perspective. I like MiniProfiler because it doe…

[Next page](https://community.miniprofiler.com/c/net/3.md?page=1)
