title: TypeInitializationException When Getting an NHibernate Session
body: <p>I’ve run into what appears to be an NHibernate config problem.  Basically, I ran up a simple proof of concept persistence integration test using NUnit, the test simply queries an Oracle database and successfully returns the last record received by the underlying table.  However, when the assemblies are taken out of the NUnit test environment and deployed as they would be for an actual application build, my call for an NHibernate session results in a <code>TypeInitializationException</code> whilst executing the code line: </p>
  
  <pre><code>sessionFactory = New Configuration().Configure().BuildSessionFactory()
  </code></pre>
  
  <p>The application is a vb.net console app running against an Oracle 9.2 database, using a ‘coding framework’ published on the web by Bill McCafferty entitled 'NHibernate Best Practices with ASP.NET' (pre S#harp Architecture).  I am running version 2.1.2.4000 of NHibernate.</p>
  
  <p>Any assistance much appreciated.</p>
  
  <p>Kind Regards</p>
  
  <p>Paul J.</p>