title: nHibernate: Unable to locate persister
body: <p>Running VS2003, nHB 3.0.0.3001, trying to run a unit test through Gallio 3.2. The code is from the first session of "Summer of nHibernate". I am getting the following error when attempting to run the test.</p>
  
  <pre><code>NHibernate.HibernateException: Unable to locate persister: DataTransfer.Customer
  TargetSite: Void OnLoad(NHibernate.Event.LoadEvent, NHibernate.Event.LoadType)
  HelpLink: null
  at NHibernate.Event.Default.DefaultLoadEventListener.OnLoad(LoadEvent event, LoadType loadType)
  at NHibernate.Impl.SessionImpl.FireLoad(LoadEvent event, LoadType loadType)
  at NHibernate.Impl.SessionImpl.Get(String entityName, Object id)
  at NHibernate.Impl.SessionImpl.Get(Type entityClass, Object id)
  at NHibernate.Impl.SessionImpl.Get[T](Object id)
  at DataAccessLayer.NhibernateDataProvider.GetCustomerById(Int32 customerId) 
  </code></pre>
  
  <p>My very uneducated guess is that the Customer class cannot be seen. But both the unit test and the data access layers have a reference to the DataTransfer assembly that holds the Customer class. The Customer class is public and all the properties are public virtual.</p>
  
  <p>The nHB config file is in the directory, and the Customer mapping file is an embedded resource. Seems to fail on the 
  line:</p>
  
  <pre><code>return session.Get&lt;Customer&gt;(customerId);
  </code></pre>