-->
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.  [ 3 posts ] 
Author Message
 Post subject: NHibernate.MappingException
PostPosted: Thu Oct 13, 2005 11:03 am 
Newbie

Joined: Wed Oct 12, 2005 7:26 pm
Posts: 2
Location: Brazil
Hi,

I have a problem with mapping files in Hibernate.cfg.xml. The error message when i run the application is :

"An unhandled exception of type 'NHibernate.MappingException' occurred in nhibernate.dll
Additional information: Resource: Hibernate.Negocio.Entidades.Departamento.hbm.xml not found"

This file is in the directory : "Hibernate\Negocio\Entidades" and "bin\debug"

what

_________________
Bebeto


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 14, 2005 7:30 am 
Contributor
Contributor

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
This is a very common problem. Search "MappingException" in this forum to find topics talking about it.
If you still can't find a solution, post more details about your problem (how are you trying to add this mapping file?).

I assume you understand that a "Resource" is a file embedded in your assembly; not a file in a directory...

_________________
Pierre Henri Kuaté.
Get NHibernate in Action Now!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 14, 2005 8:34 am 
Newbie

Joined: Wed Oct 12, 2005 7:26 pm
Posts: 2
Location: Brazil
Thanks for your help, i solved the problem setting the pallete properties of the hbm.xml file. The property Build Action must be set to "Embedded Resource" !

best regards,

_________________
Bebeto


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.