title: Unable to locate persister for the entity, no code has changed
body: <p>I am suddenly getting the error: "Unable to locate persister for the entity named 'MyLib.Project'."</p>
  
  <p>I did not make any code changes to this project since the last time I published it. The reason I went into the code to look at it is because a user reported that the web page that utilizes this library was giving an error. I have also checked the eager loading of the provider as per  (<a href="https://stackoverflow.com/questions/10099018/nhibernate-random-occurrences-of-unable-to-locate-persister">NHibernate - Random occurrences of &quot;Unable to locate persister&quot;</a>) but I am already eagerly loading.</p>
  
  <p>Furthermore, I even changed my data provider configuration to:</p>
  
  <pre><code>.Mappings(Function(x) x.FluentMappings.AddFromAssemblyOf(Of Project)())
  </code></pre>
  
  <p>I stepped through the code and actually saw it find the Project mapping and step through it. There are no exceptions thrown while building the provider, but yet the web app still fails when I try to fetch a Project from the DB.</p>
  
  <p><strong>Update</strong>
  I have tested this same exact code with a desktop application and it works perfectly fine. It seems to me the problem must be with NHibernate and the Web Application. Does anyone have any ideas about this specifically?</p>