These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: 'Could not find the dialect in the configuration' Error?
PostPosted: Mon Oct 05, 2009 5:34 am 
Newbie

Joined: Thu Mar 26, 2009 3:31 pm
Posts: 2
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.