chucknorris/roundhouse — pull request #168 by iiwaasnet (2014-12-17 12:39:12+00:00)
Title: Fixed "Cannot access a disposed object. Object name: 'NpgsqlConnection'....

Running the sample migrations for PostgreSQL the following exception was encountered when all scripts were successfully applied:

Cannot access a disposed object.
Object name: 'NpgsqlConnection'.
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'NpgsqlConnection'.
at Npgsql.NpgsqlConnection.CheckNotDisposed()
at Npgsql.NpgsqlConnection.get_FullState()
at Npgsql.NpgsqlConnection.get_State()
at roundhouse.databases.DefaultDatabase`1.dispose_connection(IConnection`1 connection)
at roundhouse.databases.DefaultDatabase`1.Dispose()
at roundhouse.runners.RoundhouseMigrationRunner.run()
at roundhouse.console.Program.run_migrator(ConfigurationPropertyHolder configuration)
at roundhouse.console.Program.Main(String[] args)

Apparently, there was a try to dispose a connection, which was already previously disposed within the call to close the same connection.