Note that there are some explanatory texts on larger screens.

plurals
  1. POError in NHibernate Session and HttpModule implementation
    text
    copied!<p>Hello is nice to be a new member of the community and thanks for your help in advance.</p> <p>I am starting to use NHibernate for my projects and is interesting. I found this sample that i managed to make work using Visual Studio 2005, Asp.net and the NHibernate binaries of the NHibernate-2.0.1.GA version.</p> <p>NHibernate basic (Sample 1): www.codegod.de/WebAppCodeGod/NHibernate-Tutorial-1---and-ASP-NET-AID25.aspx</p> <p>I wanted to move further and implement good practices for my projects so i looked up for a better implementation and found this:</p> <p>NHibernate Best Practices (Sample 2): www.codeproject.com/KB/architecture/NHibernateBestPractices.aspx?msg=3043520</p> <p>So now I am trying to change a bit the basic sample project using only the BasicSample.Data.NHibernateSessionManager.cs (as a library class) and NHibernateSessionModule.cs (as a class in Web App_Code) both classes are provided on the second sample and now I am getting an error message on the class NHibernateSessionManager.cs :</p> <p>session=session.OpenSession() "<strong>Object Reference not set as an instance of the object</strong>"</p> <p>The project source in case you want to check it is <a href="http://uploading.com/files/22d54m2b/NHibernateASPSample3.rar" rel="nofollow">here</a></p> <p>I would like to get some help about this error, but maybe would be more practical if you guys could suggest me a best practice pattern to manage the Session and its HttpModule for NHibernate that is implemented, ready to use and posted somewhere.</p> <p>Thanks for the insight you could give me about this.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload