-->
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.  [ 4 posts ] 
Author Message
 Post subject: app.config in VC++ 2005 and log4net
PostPosted: Wed Feb 14, 2007 5:58 am 
Newbie

Joined: Wed Feb 14, 2007 5:43 am
Posts: 3
Hi @,

i try to use NHibernate with VC++ 2005.

It works so far, but only with the configuration file hibernate.cfg.xml
It doesn't work with app.config?
The application throw a exception "please define dialect"...

Is app.config a C# special?

I want enable log4net in my application and I read in the docs, that's only
possible with app.config.
Is it also possible in hibernate.cfg.xml?

Any tip is welcome.

Regards Ray


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 14, 2007 8:06 am 
Newbie

Joined: Mon Jan 29, 2007 2:03 am
Posts: 11
hi rayburks,

I don't understand the "only with the configuration file hibernate.cfg.xml", maybe you can elaborate with it further.

nh config will first check if you have the ocnfiguration in either app.config or web.config(for web), then it will try to open the hibernate.cfg.xml in your bin path.

The exception "please define dialect" could be misspelled in your config/cfg file? Care to post your config files?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 14, 2007 8:08 am 
Newbie

Joined: Mon Jan 29, 2007 2:03 am
Posts: 11
hi rayburks,

I don't understand the "only with the configuration file hibernate.cfg.xml", maybe you can elaborate with it further.

nh config will first check if you have the ocnfiguration in either app.config or web.config(for web), then it will try to open the hibernate.cfg.xml in your bin path.

The exception "please define dialect" could be misspelled in your config/cfg file? Care to post your config files?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 14, 2007 9:01 am 
Newbie

Joined: Wed Feb 14, 2007 5:43 am
Posts: 3
Thx for your help.

I find the problem.

In VC++ is app.config : application.ext.config.

Now I see the log messages.

Regards Ray


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.