<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>just in ram &#187; Active Record</title>
	<atom:link href="http://justinramel.com/tag/active-record/feed/" rel="self" type="application/rss+xml" />
	<link>http://justinramel.com</link>
	<description>A list of stuff I should remember but never do</description>
	<lastBuildDate>Sat, 24 Jul 2010 10:14:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Castle ActiveRecord – Exception : The ProxyFactoryFactory was not configured</title>
		<link>http://justinramel.com/2009/01/23/castle-activerecord-exception-the-proxyfactoryfactory-was-not-configured/</link>
		<comments>http://justinramel.com/2009/01/23/castle-activerecord-exception-the-proxyfactoryfactory-was-not-configured/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 15:38:12 +0000</pubDate>
		<dc:creator>Justin Ramel</dc:creator>
				<category><![CDATA[ActiveRecord]]></category>
		<category><![CDATA[Castle]]></category>
		<category><![CDATA[Active Record]]></category>

		<guid isPermaLink="false">http://justinram.wordpress.com/2009/01/23/castle-activerecord-exception-the-proxyfactoryfactory-was-not-configured/</guid>
		<description><![CDATA[I’ve just updated to the latest version of the Castle stack and got hit with this exception:
The ProxyFactoryFactory was not configured.
Initialize 'proxyfactory.factory_class' property of the session-factory configuration section with one of the available NHibernate.ByteCode providers.
Example:
NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu
Example:
NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle
Turns out the NHibernate config has changed and as the exception says you must now specify a factory class.
To [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve just updated to the latest version of the Castle stack and got hit with this exception:</p>
<pre>The ProxyFactoryFactory was not configured.
Initialize 'proxyfactory.factory_class' property of the session-factory configuration section with one of the available NHibernate.ByteCode providers.
Example:
NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu
Example:
NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</pre>
<p>Turns out the NHibernate config has changed and as the exception says you must now specify a factory class.</p>
<p>To fix the exception add a new line to your active record facility config:</p>
<p>&lt;facility id=&quot;activerecord.facility&quot; isweb=&quot;true&quot; type=&quot;Castle.Facilities.ActiveRecordIntegration.ActiveRecordFacility, Castle.Facilities.ActiveRecordIntegration&quot;&gt;<br />
  <br />&#160;&#160;&#160; &lt;assemblies&gt;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;item&gt;Nu.Core&lt;/item&gt;</p>
<p>&#160;&#160;&#160; &lt;/assemblies&gt;</p>
<p>&#160;&#160;&#160; &lt;config&gt;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;add value=&quot;false&quot; key=&quot;cache.use_query_cache&quot; /&gt;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;add value=&quot;ReadCommitted&quot; key=&quot;connection.isolation&quot; /&gt;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;add value=&quot;false&quot; key=&quot;show_sql&quot; /&gt;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;add value=&quot;NHibernate.Dialect.SQLiteDialect&quot; key=&quot;dialect&quot; /&gt;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;add value=&quot;NHibernate.Driver.SQLite20Driver&quot; key=&quot;connection.driver_class&quot; /&gt;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;add value=&quot;true=1;false=0&quot; key=&quot;query.substitutions&quot; /&gt;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;add value=&quot;#{ConnectionString}&quot; key=&quot;connection.connection_string&quot; /&gt;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;add value=&quot;NHibernate.Connection.DriverConnectionProvider&quot; key=&quot;connection.provider&quot; /&gt;</p>
<p><strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;add value=&quot;NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle&quot; key=&quot;proxyfactory.factory_class&quot; /&gt;<br />
    <br /></strong>&#160;&#160;&#160; &lt;/config&gt;</p>
<p>&lt;/facility&gt;</p>
<p>Then add a reference in your project to NHibernate.ByteCode.Castle.dll.</p>
]]></content:encoded>
			<wfw:commentRss>http://justinramel.com/2009/01/23/castle-activerecord-exception-the-proxyfactoryfactory-was-not-configured/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>
