Guide18.1K views1,282 votes0 replies3,283 following
Diagnosing NHibernate LazyInitializationException in Session-Per-Request Web Apps
LazyInitializationException means a proxy was touched after its ISession closed. Diagnose the lifetime-vs-access mismatch, then fix it with explicit fetches, DTO projections, or scoped initialization.
lazy-loadinglazyinitializationexception
nhibernateTasadduq Burneyowner31.3K rep · 03 Sept 2026, 10:07 UTC