mvc-mini-profiler

MiniProfiler cannot find jquery

╄→гoц情女王★ 提交于 2019-12-18 03:50:47
问题 I've been using the MiniProfiler to measure site performance. When I upgraded from version 1.9 to 2.0, it stopped working. I changed the namespace from MvcMiniProfiler to StackExchange.Profiling. But when I load a page, fiddler shows there is a 404 error for the following request: GET /local/mini-profiler-resources/jquery.1.7.1.js?v=tNlJPuyuHLy/d5LQjyDuRbWKa0weCpmO3xkO6MH4TtA= HTTP/1.1 This prevents the results from being rendered in the page. To get the 1.9 version of MiniProfiler to work, I

Miniprofiler for ASP.NET web site

天涯浪子 提交于 2019-12-18 02:46:10
问题 How can I use miniprofiler in asp.net web site(NOT FOR MVC)? There are many resources for MVC but I can not find anything for web site. Thanks to Alex. Now it works for asp.net web site. But I can not understand what it displays. I have not written any code in method. See the image below. Code is as below for which I ran profiler. protected void Page_Load(object sender, EventArgs e) { using (MiniProfiler.Current.Step("test")) { Page.Title = "12345"; } } 回答1: From the miniprofiler.com: PM>

Using mvc-mini-profiler database profiling with Entity Framework Code First

醉酒当歌 提交于 2019-12-17 05:04:13
问题 I'm using the mvc-mini-profiler in my project built with ASP.Net MVC 3 and Entity Framework code-first. Everything works great until I attempt to add database profiling by wrapping the connection in the ProfiledDbConnection as described in the documentation. Since I'm using a DbContext, the way I am attempting to provide the connection is through the constructor using a static factory method: public class MyDbContext : DbContext { public MyDbContext() : base(GetProfilerConnection(), true) { }

Using mvc-mini-profiler database profiling with Entity Framework Code First

风流意气都作罢 提交于 2019-12-17 05:03:19
问题 I'm using the mvc-mini-profiler in my project built with ASP.Net MVC 3 and Entity Framework code-first. Everything works great until I attempt to add database profiling by wrapping the connection in the ProfiledDbConnection as described in the documentation. Since I'm using a DbContext, the way I am attempting to provide the connection is through the constructor using a static factory method: public class MyDbContext : DbContext { public MyDbContext() : base(GetProfilerConnection(), true) { }

Slow loading first page - ASP.NET MVC

こ雲淡風輕ζ 提交于 2019-12-12 14:40:36
问题 I used miniprofiler for my page because I think I have big loading time for my first page and some other pages. I am starting with miniprofiler but I think it is very good tool. I have this result: http://localhost:50783/ 192.2 +0.0 Getting articles from database 2.2 +186.9 Find: Index 866.4 +190.9 Render : Index 1839.0 +1058.1 Find: _Article 530.0 +2809.0 Render partial: _Article 64.3 +3339.2 Render partial: _Article 8.2 +3404.2 Render partial: _Article 12.5 +3413.0 Render partial: _Article

MiniProfiler NullReferenceException in SqlServerStorage.LoadInBatch() function due to client timings

三世轮回 提交于 2019-12-12 11:03:52
问题 I'm getting the following exception when I click on the share link for an individual profile. I'm using the latest version from NuGet, 2.0.1. The Exception: System.NullReferenceException: Object reference not set to an instance of an object. at StackExchange.Profiling.Storage.SqlServerStorage.LoadInBatch(DbConnection conn, Object idParameter) in C:\Users\sam\Desktop\MiniProfiler\StackExchange.Profiling\Storage\SqlServerStorage.cs:line 348 at StackExchange.Profiling.Storage.SqlServerStorage

MVC Mini Profiler Exception on MiniProfiler.Stop()

一曲冷凌霜 提交于 2019-12-12 10:37:35
问题 I'm just added Mini Profiler to my MVC3 project with nuget and I've followed the basic steps to get it set up. Starting the profile on Application_BeginRequest() and stopping it on Application_EndRequest() protected void Application_BeginRequest() { if (Request.IsLocal) { MiniProfiler.Start(); } } protected void Application_EndRequest() { MiniProfiler.Stop(); } MiniProfiler.Stop() is throwing an exception - "Server cannot append header after HTTP headers have been sent." Has anybody else seen

Problem using SQL Server CE with Entity Framework code-first and ASP.NET MVC 3 and mvc miniprofiler

末鹿安然 提交于 2019-12-11 07:27:31
问题 I am attempting to create an ASP.NET MVC 3 application using C#, Entity Framework 4.0 code-first and SQL Server CE, and the automated scaffolding. Everything works fine until I try to actually use a page that connects to the SQL Server CE database. My connection in the web.config is this <add name="BRX" connectionString="Data Source=|DataDirectory|BRX.sdf" providerName="System.Data.SqlServerCe.4.0"/> My model class looks like this using System; using System.Collections.Generic; using System

Upgrading to MvcMiniProfiler 1.9 from 1.7 .NET MVC3 and EF Code First

淺唱寂寞╮ 提交于 2019-12-11 07:16:19
问题 Today I've dropped back into a project that I haven't been working with for the past month or so. I had this project configured using MiniProfiler 1.7 and all was well in the world. It profiled my DB calls and the view performance as well. I decided to upgrade to 1.9 and I've run into a few speed bumps. Now, I've worked through most of the issues at this point. The only thing that seems "wrong" is DB profiling. I'm getting dropped a yellow screen of death with the following error: A null was

How to exclude a specific service from miniprofiler?

蹲街弑〆低调 提交于 2019-12-11 05:29:55
问题 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. For example: My application is polling user authentication every second using some polling service. I don't want to include that in my miniprofiler results. Is there a way to exclude it? Why I want this? I want to exclude this redundant service, so that I can focus on other results which needs