mvc-mini-profiler

mvc mini profiler (1.4) & IIS

左心房为你撑大大i 提交于 2019-12-01 19:09:34
The solution works great with cassini but as soon as I make it run into IIS (7.5 on Windows 7 / 64), it stops working. All js & css file are never downloaded and the script fails. I looked into the MiniProfilerHanler , the GetHttpHandler method is called for each required js & css but the ProcessRequest method never runs. The same behavior is observed using the sample.mvc project that goes along with the mini profiler sources. this is an older question but if you are still trying to get this to work try adding this to your web.config <system.webServer> <modules

MiniProfilerEF.Initialize() could not be initialized properly

有些话、适合烂在心里 提交于 2019-12-01 18:04:05
I just started trying out the mvc-mini-profiler in my MVC3 project with EF4.1 and after changing MiniProfilerEF.Initialize(); to MiniProfilerEF.Initialize_EF42(); I'm getting : A null was returned after calling the 'GetService' method on a store provider instance of type 'MvcMiniProfiler.Data.EFProfiledOdbcProviderFactory'. The store provider might not be functioning correctly. This method MiniProfilerEF.Initialize(); - was giving me The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047) So I've replaced dll's with ones I've manually built from the source. What

MiniProfilerEF.Initialize() could not be initialized properly

倾然丶 夕夏残阳落幕 提交于 2019-12-01 17:26:08
问题 I just started trying out the mvc-mini-profiler in my MVC3 project with EF4.1 and after changing MiniProfilerEF.Initialize(); to MiniProfilerEF.Initialize_EF42(); I'm getting : A null was returned after calling the 'GetService' method on a store provider instance of type 'MvcMiniProfiler.Data.EFProfiledOdbcProviderFactory'. The store provider might not be functioning correctly. This method MiniProfilerEF.Initialize(); - was giving me The given assembly name or codebase was invalid. (Exception

MiniProfiler - ProfiledDbDataAdapter

点点圈 提交于 2019-12-01 13:23:33
Trying to get MiniProfiler to profile loading a DataTable via a Stored Proc // Use a DbDataAdapter to return data from a SP using a DataTable var sqlConnection = new SqlConnection(@"server=.\SQLEXPRESS;database=TestDB;Trusted_Connection=True;"); DbConnection connection = new StackExchange.Profiling.Data.ProfiledDbConnection(sqlConnection, MiniProfiler.Current); var table = new DataTable(); DbDataAdapter dataAdapter = new SqlDataAdapter("GetCountries", sqlConnection); ProfiledDbDataAdapter prdataAdapter = new ProfiledDbDataAdapter(dataAdapter, null); // null reference exception here -

MiniProfiler - ProfiledDbDataAdapter

本秂侑毒 提交于 2019-12-01 10:27:01
问题 Trying to get MiniProfiler to profile loading a DataTable via a Stored Proc // Use a DbDataAdapter to return data from a SP using a DataTable var sqlConnection = new SqlConnection(@"server=.\SQLEXPRESS;database=TestDB;Trusted_Connection=True;"); DbConnection connection = new StackExchange.Profiling.Data.ProfiledDbConnection(sqlConnection, MiniProfiler.Current); var table = new DataTable(); DbDataAdapter dataAdapter = new SqlDataAdapter("GetCountries", sqlConnection); ProfiledDbDataAdapter

Servicestack.net Mini Profiler in razor view

▼魔方 西西 提交于 2019-12-01 06:53:27
Is it possible to use the mini profiler in service stack with the razor views? It looks like the documentation only shows the profiler when using the json html report view. Yes you can include it using the same MVC include but include it .AsRaw() so it doesn't get HTML encoded, e.g: @ServiceStack.MiniProfiler.Profiler.RenderIncludes().AsRaw() Example taken from this RazorRockstars template . 来源: https://stackoverflow.com/questions/12586343/servicestack-net-mini-profiler-in-razor-view

“Unable to determine the provider name” error with mvc-mini-profiler 1.9

谁说我不能喝 提交于 2019-12-01 06:13:31
I am using entity framework with mvc-mini-profiler. After upgrading from mvc-mini-profiler 1.7 to version 1.9 and solving some issues , I managed to compile my project. Now I am getting the following runtime exception: Unable to determine the provider name for connection of type 'MvcMiniProfiler.Data.EFProfiledDbConnection' I think the problem might be related with the configured db provider factories, because I had the same issue with version 1.7 and solved it by adding the following to my .config file: <DbProviderFactories> <remove invariant="MvcMiniProfiler.Data.ProfiledDbProvider" /> <add

ASP.NET MVC MiniProfiler and EntityFramework 6 Initialization

雨燕双飞 提交于 2019-12-01 03:25:45
I have a similar issue in that after loading MiniProfiler and MiniProfiler.EnitiyFramework6 I have this issue. MiniProfiler runs fine, but when I add to my Applcation_Start in Global.asax MiniProfilerEF6.Initialize(); I get this: An exception of type 'System.IO.FileLoadException' occurred in MiniProfiler.EntityFramework6.dll but was not handled in user code Additional information: Could not load file or assembly 'MiniProfiler, Version=3.0.11.0, Culture=neutral, PublicKeyToken=b44f9351044011a3' or one of its dependencies. The located assembly's manifest definition does not match the assembly

MvcMiniProfiler Unable to cast object of type EFProfiledDbConnection

心已入冬 提交于 2019-11-30 20:30:19
I am trying to integrate MvcMiniProfiler to my asp.net mvc+entity framewok project. Everything is ok for the first time web request but it is giving exception at the other requests. My Project is MVC 3 Entity Framework 4.1 (DatabaseFirst + POCO Generator DbContext) MvcMiniProfiler.dll 1.9.0.0 MvcMiniProfiler.EntityFramework.dll 1.9.1.0 I install MvcMiniProfiler from Nu-Get Added below to global.asax protected void Application_BeginRequest() { if (Request.IsLocal) { MvcMiniProfiler.MiniProfiler.Start(); MiniProfilerEF.Initialize(); } } Added below to web.config <system.data>

Mini Profiler does not render scripts

元气小坏坏 提交于 2019-11-30 18:23:48
I've added Mini Profiler through NuGet and though in a really simple project works lovely , this is a big and existing project, and of course that I'm getting some problems with it :( it writes the correct script tags in the source code as <link rel="stylesheet" type="text/css" href="/mini-profiler-includes.css?v=1.9.0.0"> <script type="text/javascript"> if (!window.jQuery) document.write(unescape("%3Cscript src='/mini-profiler-jquery.1.6.2.js' type='text/javascript'%3E%3C/script%3E")); if (!window.jQuery || !window.jQuery.tmpl) document.write(unescape("%3Cscript src='/mini-profiler-jquery