-->
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 not recognized by configure()
PostPosted: Sun Oct 22, 2006 9:21 pm 
Newbie

Joined: Sun Oct 22, 2006 9:16 pm
Posts: 2
I can not get the configure() function to find my app.config file. Whenever the statment "ISessionFactory factory = new Configuration().Configure().BuildSessionFactory();" executes it looks for the hibernate.cfg.xml file instead of using the app.config.


Top
 Profile  
 
 Post subject: use this
PostPosted: Sun Oct 22, 2006 10:59 pm 
Newbie

Joined: Wed Sep 20, 2006 8:47 pm
Posts: 5
factory = new Configuration().BuildSessionFactory();


Top
 Profile  
 
 Post subject: App.config not recognized by configure()
PostPosted: Sun Oct 22, 2006 11:31 pm 
Newbie

Joined: Sun Oct 22, 2006 9:16 pm
Posts: 2
this did not seem to fix the issue either. It appears to load no configuration at all.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 23, 2006 2:07 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Then maybe the app.config is placed incorrectly? It should be named YourApp.exe.config and placed in the same directory as the application.


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.