<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Castle demo app: ActiveRecord basics and unit testing</title>
	<atom:link href="http://gojko.net/2008/05/07/castle-demo-app-activerecord-basics-and-unit-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://gojko.net/2008/05/07/castle-demo-app-activerecord-basics-and-unit-testing/</link>
	<description>Building software that matters</description>
	<lastBuildDate>Thu, 18 Mar 2010 07:36:47 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Phil Penn</title>
		<link>http://gojko.net/2008/05/07/castle-demo-app-activerecord-basics-and-unit-testing/comment-page-1/#comment-72825</link>
		<dc:creator>Phil Penn</dc:creator>
		<pubDate>Fri, 29 Jan 2010 01:01:56 +0000</pubDate>
		<guid isPermaLink="false">http://gojko.net/?p=124#comment-72825</guid>
		<description>In case anyone else had the following problem, add NHibernate.ByteCode.Castle dll to your test project references and then the factoryclass value:

Error:
NHibernate.Bytecode.ProxyFactoryFactoryNotConfiguredException : The ProxyFactoryFactory was not configured

Amended Config:



	
	
	
	
  

</description>
		<content:encoded><![CDATA[<p>In case anyone else had the following problem, add NHibernate.ByteCode.Castle dll to your test project references and then the factoryclass value:</p>
<p>Error:<br />
NHibernate.Bytecode.ProxyFactoryFactoryNotConfiguredException : The ProxyFactoryFactory was not configured</p>
<p>Amended Config:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Mavity</title>
		<link>http://gojko.net/2008/05/07/castle-demo-app-activerecord-basics-and-unit-testing/comment-page-1/#comment-32013</link>
		<dc:creator>Brian Mavity</dc:creator>
		<pubDate>Mon, 11 Aug 2008 03:33:22 +0000</pubDate>
		<guid isPermaLink="false">http://gojko.net/?p=124#comment-32013</guid>
		<description>Just in case anyone else has this problem. If you are using the latest castle bits, you&#039;ll need to update your config section by removing all the &quot;hibernate.&quot;

So you&#039;ll have these properties
key=&quot;connection.driver_class&quot;
key=&quot;dialect&quot;
key=&quot;connection.provider&quot;
key=&quot;connection.connection_string&quot;

Wasted 2 hours on that lol ;)</description>
		<content:encoded><![CDATA[<p>Just in case anyone else has this problem. If you are using the latest castle bits, you&#8217;ll need to update your config section by removing all the &#8220;hibernate.&#8221;</p>
<p>So you&#8217;ll have these properties<br />
key=&#8221;connection.driver_class&#8221;<br />
key=&#8221;dialect&#8221;<br />
key=&#8221;connection.provider&#8221;<br />
key=&#8221;connection.connection_string&#8221;</p>
<p>Wasted 2 hours on that lol <img src='http://gojko.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stew</title>
		<link>http://gojko.net/2008/05/07/castle-demo-app-activerecord-basics-and-unit-testing/comment-page-1/#comment-31750</link>
		<dc:creator>Stew</dc:creator>
		<pubDate>Tue, 05 Aug 2008 23:09:07 +0000</pubDate>
		<guid isPermaLink="false">http://gojko.net/?p=124#comment-31750</guid>
		<description>I upgraded to the latest Npgsql and that seems to have broken the ice. I think I&#039;m OK now.

Thanks again for the help.</description>
		<content:encoded><![CDATA[<p>I upgraded to the latest Npgsql and that seems to have broken the ice. I think I&#8217;m OK now.</p>
<p>Thanks again for the help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stew</title>
		<link>http://gojko.net/2008/05/07/castle-demo-app-activerecord-basics-and-unit-testing/comment-page-1/#comment-31711</link>
		<dc:creator>Stew</dc:creator>
		<pubDate>Tue, 05 Aug 2008 00:12:59 +0000</pubDate>
		<guid isPermaLink="false">http://gojko.net/?p=124#comment-31711</guid>
		<description>Thanks for taking the time to respond.

I&#039;m still stuck here. There is no client schema in the database right now. Here&#039;s what the error looks like right now:

Scrumpy.Database.Test.Tests.ClientTests.TestNonUniqueUsername:
Castle.ActiveRecord.Framework.ActiveRecordException : Could not perform Save for Client
  ----&gt; NHibernate.ADOException : cannot close connection
  ----&gt; NHibernate.ADOException : Could not close Npgsql.NpgsqlConnection connection
  ----&gt; System.NotSupportedException : This stream does not support seek operations.
TearDown : System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
  ----&gt; NHibernate.ADOException : cannot close connection
  ----&gt; NHibernate.ADOException : Could not close Npgsql.NpgsqlConnection connection
  ----&gt; System.NotSupportedException : This stream does not support seek operations.

All suggestions appreciated. I&#039;m very stuck.</description>
		<content:encoded><![CDATA[<p>Thanks for taking the time to respond.</p>
<p>I&#8217;m still stuck here. There is no client schema in the database right now. Here&#8217;s what the error looks like right now:</p>
<p>Scrumpy.Database.Test.Tests.ClientTests.TestNonUniqueUsername:<br />
Castle.ActiveRecord.Framework.ActiveRecordException : Could not perform Save for Client<br />
  &#8212;-&gt; NHibernate.ADOException : cannot close connection<br />
  &#8212;-&gt; NHibernate.ADOException : Could not close Npgsql.NpgsqlConnection connection<br />
  &#8212;-&gt; System.NotSupportedException : This stream does not support seek operations.<br />
TearDown : System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.<br />
  &#8212;-&gt; NHibernate.ADOException : cannot close connection<br />
  &#8212;-&gt; NHibernate.ADOException : Could not close Npgsql.NpgsqlConnection connection<br />
  &#8212;-&gt; System.NotSupportedException : This stream does not support seek operations.</p>
<p>All suggestions appreciated. I&#8217;m very stuck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gojko</title>
		<link>http://gojko.net/2008/05/07/castle-demo-app-activerecord-basics-and-unit-testing/comment-page-1/#comment-29090</link>
		<dc:creator>gojko</dc:creator>
		<pubDate>Sat, 28 Jun 2008 19:03:36 +0000</pubDate>
		<guid isPermaLink="false">http://gojko.net/?p=124#comment-29090</guid>
		<description>Hi Stew,

This error message suggests that your schema cannot be dropped as part of the unit test fixture set-up. Maybe some data consistency constraints are preventing you from dropping the client table (eg you have more tables in the schema, but you only loaded the Client table into AR during unit testing). Try to drop all tables in the schema manually before running the test.</description>
		<content:encoded><![CDATA[<p>Hi Stew,</p>
<p>This error message suggests that your schema cannot be dropped as part of the unit test fixture set-up. Maybe some data consistency constraints are preventing you from dropping the client table (eg you have more tables in the schema, but you only loaded the Client table into AR during unit testing). Try to drop all tables in the schema manually before running the test.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
