-->
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.  [ 2 posts ] 
Author Message
 Post subject: Could not find the dialect in the configuration
PostPosted: Tue Sep 08, 2009 6:18 am 
Newbie

Joined: Sat Sep 05, 2009 5:20 am
Posts: 2
Hi all

So I've downloaded all the files and created a new ASP.NET website project. I've closely followed the setup as demonstrated in the first Summer of NHibernate screencast but I've been stuck on the same thing for weeks.

I have a page which simply tries to load an object from the database and display some information from it, but the page simply gives the error 'Could not find the dialect in the configuration'.

The dialect I have specified in hibernate.cfg.xml is just copied and pasted from countless examples I have found on the web. I am certain that the error is not arising because NHibernate literally could not find the dialect node in the configuration file, or that the dialect specified is not valid.

I think the problem is that NHibernate cannot find the configuration file itself. My understanding is that the configuration file needs to be in the same location as the code using the NHibernate objects; in this case; the folder containing the web page. Is this correct?

Can you think of any other reason I might be getting this error? I have been unable to proceed with NHibernate for three weeks now and I'm starting to get pretty disillusioned with it to be honest.

Thanks for your help.

David


Top
 Profile  
 
 Post subject: Re: Could not find the dialect in the configuration
PostPosted: Tue Sep 08, 2009 11:31 pm 
Newbie

Joined: Mon Sep 07, 2009 12:28 am
Posts: 3
Not sure if it'll work, put the content in the "hibernate.cfg.xml" file inside your "web.config" or "app.config" file inside the "<configuration>" tags.


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

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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.