In genera nobody put *.hbm.xml as files in a web app. but if you want do it you should configure NH to understand where are mappings.The session-factory configuration has <mapping> node and the Configuration class has AddDirectory method.
2009/4/22 [email protected] <[email protected]> > > The web project is reading the web.config perfectly the only thing i > cant understand if why it doesnt find the hbm.xml if its on the > App_code folder together with the .cs files that has the same name of > the hbm.xml > > On 22 abr, 17:14, Oskar Berggren <[email protected]> wrote: > > Sounds like you have a web site project. Put you model and mapping files > in > > a separate project of type "class library" that you reference from the > web > > project. This is good for many reasons! > > > > If you absolutely insist to not use a class library you must instead > > convince NHibernate to read the mapping files from the file system > instead > > of from assembly resources. > > > > /Oskar > > > > 2009/4/22 [email protected] <[email protected]> > > > > > > > > > It doesnt let me put as an embedded resource in the properties i only > > > have the name of file and the path what can be wrong? > > > > > On 22 abr, 16:50, Gustavo Ringel <[email protected]> wrote: > > > > you don't put the hbm.xml in the same project as the web app but in a > > > class > > > > library > > > > > > On Wed, Apr 22, 2009 at 11:44 PM, [email protected] < > > > [email protected] > > > > > > > wrote: > > > > > > > Thanks for the answer ill read the articule but im working on a web > > > > > aplication and it doesnt allows me to make the hbm.xml files as and > > > > > embedded resource. > > > > > > > On 22 abr, 16:20, Gustavo Ringel <[email protected]> wrote: > > > > > > please read this, you will find the answer there: > > > > >http://nhforge.org/wikis/howtonh/your-first-nhibernate-based-applicat. > .. > > > > > > > > It is a must if you are at this position now. Put attention when > it > > > talks > > > > > > about Embedded Resource. > > > > > > > > Gustavo. > > > > > > > > On Wed, Apr 22, 2009 at 11:12 PM, [email protected] < > > > > > [email protected] > > > > > > > > > wrote: > > > > > > > > > Good afternoon im looking for help about the error shown on the > > > title, > > > > > > > if any one can give an opinion im working on a web aplication, > > > thanks > > > > > > > a lot > > > -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
