Hi,
I'm trying to use the castle project (subversion) and nhibernate 2a1 (subversion). But I can get it to work properly.
I've downloaded the latest nhibernate source and used the following build command:
NAnt -D:project.config=release clean build >output-release-build.log
The build finished with 3 warnings and no errors. When I use the binary in my castle project I get the following exception:
System.InvalidOperationException: Could not find the dialect in the configuration
The projects nhibernate settings are:
<activerecord isWeb="true">
<config>
<add
key="hibernate.connection.driver_class"
value="NHibernate.Driver.SqlClientDriver" />
<add
key="hibernate.dialect"
value="NHibernate.Dialect.MsSql2005Dialect" />
<add
key="hibernate.connection.provider"
value="NHibernate.Connection.DriverConnectionProvider" />
<add
key="hibernate.connection.connection_string"
value="Server=EMPTY\SQWUUL2K5;Initial Catalog=nhibernate;User Id=sa;Password=p@$$w0r7" />
</config>
</activerecord>
Because I received this exception, I tried to test the nhibernate build with the following command:
NAnt -D:project.config=release -D:nhibernate.diale
ct="NHibernate.Dialect.MsSql2005Dialect" -D:nhibernate.connection.driver_class="
NHibernate.Driver.SqlClientDriver" -D:nhibernate.connection.connection_string="S
erver=EMPTY\SQWUUL2K5;Initial Catalog=nhibernate;User Id=sa;Password=p@$$w0r7" t
est >output-release-test.log
The log file contains the following (multiple times):
[property] Read-only property "nhibernate.dialect" cannot be overwritten.
[property] Read-only property "nhibernate.connection.driver_class" cannot be overwritten.
[property] Read-only property "nhibernate.connection.connection_string" cannot be overwritten.
and then a lot of stacktraces starting with "could not connect to server... etc".
Any idea what could be the problem?
Regards,
DarnDao
|