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: Config Exception when adding user control to Windows App
PostPosted: Sun Jul 06, 2008 9:04 am 
Newbie

Joined: Sun Jul 06, 2008 8:55 am
Posts: 3
Hi,

I have created a Windows Control library and in this library I am accessing a NHibernate entity library (created with NConstruct) to render the UI on my control.

I now created a windows app and added a reference to my control dll and also add it to my toolbox.

Now when I try to add the control fro the toolbox to a form I get this error message.

Failed to create component 'ToDoListControl'
Nhibrenate.Cfg.HibernateConfigException Anexception occrued during configuarion of persistemce layer
FileNOtFoundException
Could not find file c:\program files\microsoft visual studio 8\common7\ide\hibernate.cfg.xml

I added a the nhinernate configuration info to a App.Config in my control library.

Any ideas??

Malcolm


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 06, 2008 9:52 am 
Expert
Expert

Joined: Thu Dec 14, 2006 5:57 am
Posts: 1185
Location: Zurich, Switzerland
I'm not sure, where this goes wrong, but I strongly recommend to prevent a nhibernate initialization during design mode. In my opinion, this makes no sense.

_________________
--Wolfgang


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