title: Could not read hilo value in NHibernate
body: <p>For our ASP.NET MVC application we are seeing the following in our error log:</p>
  
  <blockquote>
    <p>IdentifierGenerationException could not read a hi value from table 'nhibernatehiloidentity' using the where clause (entity = '[table name]')</p>
  </blockquote>
  
  <p>The <code>[table name]</code> can vary. We know there is an entry in the <code>nhibernatehiloidentity</code> table as it would fail each time, which it does not. My current theory is locking is randomly preventing a read from the <code>hilo</code> table. However, the above exception is the only information we have to go off of. </p>
  
  <p>Has anyone else had issues with generating hilo Ids in NHibernate?</p>
  
  <p>.NET 4.5, MVC 5.2, SQL Server 2012 and NHibernate 4.</p>