Hi,
I build NHibernate 0.8.3 successfully. However, when I try to test NHibernate I get a 'build failed' message. I call the build file with these params:
NAnt -D:project.config=release -D:nhibernate.dialect="NHibernate.Dialect.PostgreSQLDialect" -D:nhibernate.connection.driver_class="NHibernate.Driver.NpgsqlDriver" -D:nhibernate.connection.connection_string="Server=localhost;initial catalog=nhibernate;User ID=postgres;Password=xxxxxx;Encoding=UNICODE;Min Pool Size=2" test >output-release-test.log
I am using PostgreSQL 8.0.1. The database is up and running.
Here is an extract of output-release-test.log:
2005-05-16 20:13:41,967 [3296] ERROR NHibernate.Test.TestCase [] <> - Error while setting up the database schema, ignoring the fixture
Exception: NHibernate.HibernateException
Message: Could not create the driver from NHibernate.Driver.NpgsqlDriver.
Source: NHibernate
at NHibernate.Connection.ConnectionProvider.ConfigureDriver(IDictionary settings)
at NHibernate.Connection.ConnectionProvider.Configure(IDictionary settings)
at NHibernate.Connection.ConnectionProviderFactory.NewConnectionProvider(IDictionary settings)
at NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Boolean script, Boolean export, Boolean justDrop, Boolean format)
at NHibernate.Tool.hbm2ddl.SchemaExport.Create(Boolean script, Boolean export)
at NHibernate.Test.TestCase.ExportSchema(IList files, String assemblyName)
at NHibernate.Test.TestCase.TestFixtureSetUp()
Nested Exception
Exception: System.Reflection.TargetInvocationException
Message: Ein Aufrufziel hat einen Ausnahmefehler verursacht.
Source: mscorlib
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at NHibernate.Connection.ConnectionProvider.ConfigureDriver(IDictionary settings)
Nested Exception
Exception: NHibernate.HibernateException
Message: The IDbCommand and IDbConnection implementation in the Assembly Npgsql.dll could not be found. Please ensure that the Assemblies needed to communicate with PostgreSQL are in the Global Assembly Cache or in a location that NHibernate can use System.Type.GetType(string) to load the types from.
Source: NHibernate
at NHibernate.Driver.NpgsqlDriver..ctor()
2005-05-16 20:13:42,108 [3296] ERROR NHibernate.Test.TestCase [] <> - Error while setting up the database schema, ignoring the fixture
Exception: NHibernate.HibernateException
Message: Could not create the driver from NHibernate.Driver.NpgsqlDriver.
Source: NHibernate
at NHibernate.Connection.ConnectionProvider.ConfigureDriver(IDictionary settings)
at NHibernate.Connection.ConnectionProvider.Configure(IDictionary settings)
at NHibernate.Connection.ConnectionProviderFactory.NewConnectionProvider(IDictionary settings)
at NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Boolean script, Boolean export, Boolean justDrop, Boolean format)
at NHibernate.Tool.hbm2ddl.SchemaExport.Create(Boolean script, Boolean export)
at NHibernate.Test.TestCase.ExportSchema(IList files, String assemblyName)
at NHibernate.Test.TestCase.TestFixtureSetUp()
Nested Exception
Exception: System.Reflection.TargetInvocationException
Message: Ein Aufrufziel hat einen Ausnahmefehler verursacht.
Source: mscorlib
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at NHibernate.Connection.ConnectionProvider.ConfigureDriver(IDictionary settings)
Nested Exception
Exception: NHibernate.HibernateException
Message: The IDbCommand and IDbConnection implementation in the Assembly Npgsql.dll could not be found. Please ensure that the Assemblies needed to communicate with PostgreSQL are in the Global Assembly Cache or in a location that NHibernate can use System.Type.GetType(string) to load the types from.
Source: NHibernate
at NHibernate.Driver.NpgsqlDriver..ctor()
2005-05-16 20:13:43,061 [3296] ERROR NHibernate.Test.TestCase [] <> - Error while setting up the database schema, ignoring the fixture
Exception: NHibernate.HibernateException
Message: Could not create the driver from NHibernate.Driver.NpgsqlDriver.
Source: NHibernate
at NHibernate.Connection.ConnectionProvider.ConfigureDriver(IDictionary settings)
at NHibernate.Connection.ConnectionProvider.Configure(IDictionary settings)
at NHibernate.Connection.ConnectionProviderFactory.NewConnectionProvider(IDictionary settings)
at NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Boolean script, Boolean export, Boolean justDrop, Boolean format)
at NHibernate.Tool.hbm2ddl.SchemaExport.Create(Boolean script, Boolean export)
at NHibernate.Test.TestCase.ExportSchema(IList files, String assemblyName)
at NHibernate.Test.TestCase.TestFixtureSetUp()
I have no idea, why a connection cannot be established. Any help is highly appreciated. Thank you.
Dirk
|