Questions tagged [nhibernate-profiler]

A tool to track NHibernate activity and a "real-time debugger"

The NHibernate profiler provides:

  • Visual insight into the interaction between your database and application code.
  • Analysis and detection of common pitfalls when using NHibernate.

Project Home

Installation

NHibernate Profiler can most easily be installed through its NuGet package.

Install-Package NHibernateProfiler
9 questions
5
votes
3 answers

NHibernate Profiler doesn't see request from my ASP.NET MVC application

I'm using NHProf with ASP.NET MVC 3. I inserted HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize(); in my Application_Start method, but NHProf still doesn't see my sessions and doesn't show up anything. What could be…
GaGar1n
  • 1,040
  • 2
  • 10
  • 17
5
votes
2 answers

Installed Nhibernate Profiler via nuget but now my project won't run

I have VS 2015 and a web api soultion. I get this error now Server Error in '/SiteIntegration' Application. Failed to compile both on .NET 4.5 and on .NET 4.0. 4.5 Exception: System.InvalidOperationException: Failed to compile the following…
chobo2
  • 83,322
  • 195
  • 530
  • 832
2
votes
1 answer

NHibernate Profiler does not show query plan

My application uses NHibernate to connect to a MySQL database. The profiling works fine, but the links at the bottom ("See the x row(s) resulting from this statement" and "Query plan for this statement") do not work. When I click on the query plan…
Erik Schierboom
  • 16,301
  • 10
  • 64
  • 81
1
vote
1 answer

NHibernate Profiler does not work in .NET Core 3.1

I'm trying to use NHibernate Profiler in a .NET Core 3.1 MVC app and although I've tried installing what the profiler insists it needs to be it's job (via nuget), I still cannot get NHibernate Profiler working with .NET Core 3.1. I've started by…
1
vote
1 answer

NHProf C# API -- determine if profiler has been initialized

In code, you initialize the NHibernateProfiler with this call: HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize(); Is there a way to determine if a profile has been initialized or not? I was looking for something…
kdawg
  • 2,019
  • 21
  • 31
1
vote
1 answer

Cached Fetch for User Roles from NHibernate in an MVC App

Using classes like this... public class Login { public virtual Guid LoginId { get; set; } public virtual string Name { get; set; } public virtual string Email { get; set; } public virtual IList Groups { get; set; } } public…
1
vote
2 answers

nHibernate Profiler 2 Error

I just grabbed the update for nHibernate Profiler 2 for use in development (installed via Nuget), but when ever the NHibernateProfiler.Initialize() method is called by WebActivator I get the error as shown below. Any idea why it's trying to create…
Nick Albrecht
  • 16,607
  • 10
  • 66
  • 101
0
votes
1 answer

Configure LINQPad to work with NHibernate Profiler

I would like to profile my NHibernate queries that I run from LINQPad using NHibernate Profiler. When I try to initialize the profiler using this: NHibernateProfiler.Initialize(); I get the following error: The type or namespace name 'NHibernate'…
Philip Fourie
  • 111,587
  • 10
  • 63
  • 83
0
votes
2 answers

Magic string causes error in nHibernate Profiler

I've got a business application that I'm responsible for maintaining and this intermittent error keeps popping up regarding creating new comments in it. I finally got an exact string that causes it and after slowly narrowing down the paragraph of…
Nick Albrecht
  • 16,607
  • 10
  • 66
  • 101