Hi guys, Could anyone point me in the right direction with this error? I am using Nhib 2.1.0.4000 and my simple program is falling over with the exception 'Could not find the dialect in the configuration' as soon as it tried to compile the mapping document. The program is very simple and the config file i am using works fine on another project which uses Nhib 2.0.1.4000. The config file i am using looks like this:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"/> </configSections> <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> <session-factory> <property name="connection.provider"> NHibernate.Connection.DriverConnectionProvider </property> <property name="dialect"> NHibernate.Dialect.MsSql2005Dialect </property> <property name="connection.driver_class"> NHibernate.Driver.SqlClientDriver </property> </session-factory> </hibernate-configuration> </configuration>
and the mapping file is simply:
<?xml version="1.0" encoding="utf-8" ?> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Common" namespace="Common.DomainModel">
<class name="CustomerAccount" table="Accounts"> <id name="AccountId" unsaved-value="00000000-0000-0000-0000-000000000000"> <generator class="guid" /> </id>
<property name="Login" /> <property name="Password" /> </class>
</hibernate-mapping>
As you can see, both are very simple and the config file does specify the dialect (the connection string is set in the source code). Can anyone give me any pointers? I've done some googling on this error but all i can find is information regarding the changes from v1->v2 of nhiberate =(. Thanks in advance to anyone who can help.
|