Questions tagged [mvc-mini-profiler]
A simple but effective mini-profiler for ASP.NET, WCF and the .NET platform
402
questions
0
votes
0
answers
27
views
Is it possible to limit the number of timings stored by MiniProfiler (for .NET)?
I'm using MiniProfiler in a .NET core app to time various stages in a 30 FPS video pipeline. This is a long-running executable, and memory used for Timing instances seems to grow without limit -- ...
1
vote
1
answer
41
views
MiniProfiler .Ignore() extension method does not disable profiling
I have a method with a portion of code I want to ignore from profiling when using MiniProfiler.
As from documentation, the extension method that does this is .Ignore(), that when used in a using ...
9
votes
2
answers
2k
views
InvalidOperationException: Cannot find compilation library location for package 'System.Security.Cryptography.Pkcs'
Just upgraded a web project to .NET 6.0. Project compiles but when I run the site I get the following error:
InvalidOperationException: Cannot find compilation library location
for package 'System....
0
votes
0
answers
40
views
Miniprofiler: for Web API project which doesnt have UI
I am new to Miniprofiler . I am having Web which is Asp.net MVC application ,which internally calling App which is WebAPI project. I am able to use Miniprofiler for Web with Entity framework profiling ...
1
vote
1
answer
50
views
Start MiniProfiler UI minimized?
I've added MiniProfiler to an ASP.NET Core SPA app, and when first loading my app there are a lot of requests made so MiniProfiler UI covers some important parts of my app (and there's not really any ...
-1
votes
1
answer
65
views
MiniProfiler ASP.NET MVC5 not able to get results
I am trying to use MiniProfiler for the ASP.NET MVC application. I installed the following NuGet packages. I configured the MiniProfiler in both Global.ascx and Also the script in my _Layout. But I am ...
1
vote
1
answer
225
views
Mini-profiler does not show any statistics on sql queries?
The mini profiler does not show any statistics on sql queries
I do setup according to the documentation and the example of the application:
https://miniprofiler.com/dotnet/HowTo/ProfileEFCore
https://...
3
votes
1
answer
608
views
Getting "Not Found" error with mini profiler in ASP.NET Core with EF .net 5
I've added the following code to my asp.net core .net 5 app that works with entity framework. In startup.cs I have:
services.AddMiniProfiler(options =>
{
options....
3
votes
1
answer
220
views
MiniProfiler ASP.NET Core - ShouldProfile based on user role
I have MiniProfiler set up in an ASP.NET Core application. Profiling works fine.
However, I only want Admins to be able to profile.
I have the following in ConfigureServices:
services.AddMiniProfiler(...
1
vote
0
answers
63
views
ormlite async methods throw casting exception with miniprofiler
When using async ormlite methods (like below), Ormlite throws the following error.
Unable to cast object of type 'StackExchange.Profiling.Data.ProfiledDbCommand' to type 'System.Data.SqlClient....
0
votes
0
answers
41
views
When using MiniProfilter to wrap DbConnection, receive error Procedure or function 'X' expects parameter '@Y', which was not supplied
I am adding MiniProfiler to our existing custom ORM which is based on ADO.Net. This link indicates that I just need to wrap the DbConnection with a new instance of ProfiledDbConnection but when I do ...
0
votes
1
answer
207
views
MiniProfiler MVC SQL Timings Not Displaying
I am using MiniProfiler.Mvc5 v4.2.1 with C# for an ASP.NET MVC5 website. I am implementing MiniProfiler based on the Samples.Mvc5 project included in the source code repo and am having an issue with ...
2
votes
0
answers
30
views
where to see the SQL query time?
I'm new to using the mini profiler tool, so please forgive my beginner's question. I notice my report shows 89.9ms for 37 sql queries:
duration (ms) from start (ms) query time (ms)
...
1
vote
2
answers
960
views
Integrate MiniProfiler with .NetCore 3.1
I want to integrate MiniProfiler is a WebApi or View /XX/results-index.
The WebApi is authenticated with Bearer Tokens. I only want Group Users in Active Directory can see the results, but I don't get ...
0
votes
0
answers
96
views
Miniprofiler (Asp.net Core) Using sessionStorage for Basic Auth
I am trying to use Miniprofiler on an Asp.Net Core back end. The front end is a SPA and using session storage to set basic auth. I am running into a problem where I need to set the basic auth from ...
2
votes
1
answer
299
views
Is it safe to leave MiniProfiler's ProfiledDbConnection in production code?
Given that MiniProfiler isnt actually running for non-local requests due to the following:
protected void Application_BeginRequest()
{
if (Request.IsLocal)
MiniProfiler....
2
votes
0
answers
194
views
What is an appropriate way to drive MiniProfiler.NET's ResultsAuthorize handler given that it needs to be included high up in the middleware?
Pretty much as the title states - I'm struggling to find the best balance between:
Having Miniprofiler run 'high up' enough in the middleware chain that it can 'see' the full picture of a request.
...
1
vote
1
answer
282
views
MiniProfiler in different project
I have the following solutions structure:
1- Asp.net Core MVC project1 (views and UI)
2- Asp.net core API project2 (api)
3- EF Core project3 (db access)
simple scenario is project 1 make call to ...
0
votes
2
answers
342
views
MiniProfiler does not load because profiler route is not found
I installed MiniProfiler.Mvc5 nuget and put in the followings:
web.config:
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
</system.webServer>
...
0
votes
1
answer
253
views
How should I interpret this MiniProfiler result?
I am currently trying to analyze a performance issue where an ASP.NET MVC razor view renders very slowly: it takes 40+ seconds to return a response to the browser. This issue does not always occur: ...
1
vote
1
answer
235
views
How do you view profile information with MiniProfiler from unit tests
I am trying to profile various portions of a .Net Core 2.2 library. I decided to use unit testing since I have unit tests for many of the areas I want to profile. I am trying to use StackExchange's ...
0
votes
1
answer
348
views
Use MiniProfiler with DevExpress XPO (ORM)
I'm trying to setup my project so that MiniProfiler is able to profile XPO's SQL calls. This should have been a very simple endeavor, as MiniProfiler just wraps an ordinary connection but this simple ...
1
vote
1
answer
702
views
List of Profiling results sessions of Mini Profiler
How to get a list of all profiling sessions from Mini Profiler?
I am using the MiniProfiler for Dot Net Project.
2
votes
2
answers
1k
views
Unable to print query using Miniprofiler
I have integrated Entity Framework and CodeFirstStoredProc library in my project. I want to log the queries executed by both the libraries. Previously I was using Database.Log delegate provided by EF ...
0
votes
0
answers
216
views
MiniProfiler v4 dependency on .net standard
Trying to install MiniProfiler v4 (4.0.0) and get an error related to the following:
Install-Package : Could not install package 'Microsoft.Extensions.DependencyInjection.Abstractions 2.0.0'. You are ...
12
votes
1
answer
4k
views
Wire up MiniProfiler to ASP.NET Core Web API Swagger
I found only this manual describing how to make MiniProfiler work with ASP.NET Web API and Swagger UI, but I didn't find any manual describing how to make ASP.NET Core Web API work with MiniProfiler ...
0
votes
1
answer
211
views
Add more information in MiniProfiler's CustomTiming
I am using MiniProfiler to monitor request to external APIs using CustomTimings :
var externalApiClient = new ExternalApiClient();
using(MiniProfiler.Current.CustomTiming("ExternalAPI","ExternalAPI....
4
votes
1
answer
1k
views
Profiling asp.net core 2 (web api) with angular 5
I am looking for Profiling solutions for following environment, could someone suggest please.
ASP.NET Core 2 on net471
EntityFramework 6.2.0
Angular 5.0.0
I looked into MiniProfiler & Glimpse. ...
7
votes
1
answer
609
views
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....
6
votes
1
answer
2k
views
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 ...
0
votes
1
answer
262
views
MiniProfiler not working after publish
I added MiniProfiler to my project using
Install-Package MiniProfiler
To try and work out why the app runs so slowly, and it seems to be working fine when debugging in VS.
However, after publishing ...
3
votes
1
answer
2k
views
MiniProfiler not showing up in ASP.NET Core
I'm trying to plumb MiniProfiler into my ASP.NET Core MVC web app. I'm not using Entity Framework, I'm using Dapper.
Following the sample app, here are my changes:
Added to Startup.cs ...
1
vote
1
answer
639
views
Unable to profile MySQL with MiniProfiler on .NET Core
I'm playing with .net core and trying to get asp.net core + mysql + dapper + mini-mvc-profiler to work on Linux. Having problem with mini-mvc-profiler.
I'm using:
<PackageReference Include="...
2
votes
1
answer
300
views
MiniProfiler results UI shows empty names since using SqlServerStorage
We have been using MiniProfiler as a simple way to profile our ASP.NET MVC 5 application performance. It worked well in dev, but as soon as we put the application into staging on a web farm, we soon ...
0
votes
1
answer
61
views
Using Miniprofiler with Neo4j Graph DB
I'm playing around with Neo4j community edition, with Neo4jClient for .net, and looking for a way to use the great Miniprofiler for the calls to the Neo4j DB.
I'm using the miniprofiler on some ...
2
votes
1
answer
100
views
MiniProfiler page loading twice per request
I've boiled this down to the smallest example:
Test.aspx
(Code behind is empty)
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="C3.Pages.Test" %>
<%@ ...
0
votes
1
answer
302
views
LightInject - Interception not intercepting dependencies
I'm using LightInject with the ServiceProvider adapter on an MVC website. I'm trying to wire it into MiniProfiler, but I'm not having much luck. MiniProfiler seems to be capturing the MVC Controller ...
0
votes
1
answer
736
views
How can I have Miniprofiler just call may log method for the profile messages
I am building a windows service.
I am trying to have miniprofiler, intercept ado.net calls and hand the messages to my application's logging system.
All miniprofiler needs to do is to call a static ...
0
votes
0
answers
628
views
How do I prevent posts to mini-profiler-resources/results in production?
I am trying to setup MiniProfiler to run in all of our environments instead of just on our local machines. It is my understanding that StackOverflow runs MiniProfiler in production without any issues. ...
4
votes
1
answer
1k
views
MiniProfiler and WebForms
So I'm trying to use MiniProfiler (https://github.com/MiniProfiler/dotnet) for WebForms website. What I did is:
install package using nuget
add MiniProfiler initialization in Global.asax.cs (...
3
votes
1
answer
519
views
How to exclude a specific service from miniprofiler?
I am using miniprofiler to assess performance of my MVC6 application. Everything is working fine but I am looking for an option to exclude (mute) a particular service (requests) from my application.
...
0
votes
1
answer
142
views
Upgrade to MiniProfiler 3.2 from 2.1 no longer shows child
I recently upgraded miniprofiler to the latest version and it is no longer automatically creating children steps for various MVC related things. Before it would show the timings of all the actions and ...
3
votes
1
answer
851
views
MiniProfiler does not load
I installed Nuget package miniprofiler.com but the profiler windows is not visible, but the miniprofiler script was generated to the html.
I putted following script to the global.asax
...
10
votes
1
answer
1k
views
MiniProfiler: How do I profile an AngularJS + WebAPI app?
Cross-posted on the MiniProfiler community.
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 ...
1
vote
1
answer
932
views
Is it possible to disable mini profiler handler?
I want to disable profiling and also mini-profiler-resources/results, mini-profiler-resources/results-list endpoints depending on some boolean flag. I know that i can skip starting profiler for the ...
2
votes
1
answer
2k
views
MiniProfiler not displaying
I am using MiniProfiler v3.2.0.157 and MiniProfiler.EF6 v3.0.11 with C# for an ASP.NET MVC 4 website. While I can get the profiler to show up on the majority of the pages on the site, it does not show ...
1
vote
0
answers
925
views
Disabling and enabling miniprofiler when working with Umbraco 7
This is a two part question, which circles around the same problematcis.
Without setting anything up in Global.Asax, and just inserting this line in my .cshtml file for my basic layout, and running ...
7
votes
1
answer
695
views
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 ...
0
votes
1
answer
454
views
MiniProfiler is bypassing my Authorization filter
I have mini-profiler working, but now I am trying to restrict access by setting functions as described under "Profiler Security" at http://miniprofiler.com/
MiniProfiler.Settings.Results_Authorize = ...