Note that there are some explanatory texts on larger screens.

plurals
  1. POnHibernate and SQLite: Hibernate.Bytecode.ProxyFactoryFactoryNotConfiguredException
    text
    copied!<p>I am getting the following error at runtime: NHibernate.Bytecode.ProxyFactoryFactoryNotConfiguredException: An exception occurred in the persistence layer. at NHibernate.Bytecode.AbstractBytecodeProvider.get_ProxyFactoryFactory()</p> <p>Here is the config file:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"&gt; &lt;session-factory &gt; &lt;property name="connection.provider"&gt; NHibernate.Connection.DriverConnectionProvider&lt;/property&gt; &lt;property name="connection.driver_class"&gt;NHibernate.Driver.SQLite20Driver&lt;/property&gt; &lt;property name="connection.connection_string"&gt;Data Source=audioHistory.sqlite&lt;/property&gt; &lt;property name="show_sql"&gt;true&lt;/property&gt; &lt;property name="dialect"&gt;NHibernate.Dialect.SQLiteDialect&lt;/property&gt; &lt;property name="proxyfactory.factory_class"&gt; NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle&lt;/property&gt; &lt;property name="query.substitutions"&gt;true=1;false=0&lt;/property&gt; &lt;mapping assembly="DataTransfer"/&gt; &lt;/session-factory&gt; &lt;/hibernate-configuration&gt; </code></pre> <p>The file is copied to the output directory I have a reference to NHibernate.ByteCode.Castle in the project Fails on the line below</p> <pre><code>Configuration config = new Configuration(); _sessionFactory = config.BuildSessionFactory(); // Fail </code></pre> <p>Any suggestions appreciated.</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