-->
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: Web Project in Visual Studio .NET 2005 + NHibernate
PostPosted: Fri Apr 20, 2007 10:07 am 
Newbie

Joined: Fri Apr 20, 2007 9:47 am
Posts: 1
Hi Dears,

I´m very beginner in NHibernate.
I tried use NHibernate in Web Project Visual Studio .NET 2005.

In App_Code folder I created Task class = Task.cs and Task.hbm.xml.
(Visual .NET 2005 WEB PROJECT doesn´t support Embedded Resource in Build Action propert in Task.hbm.xml file. Because this project is a Web Site and don´t Class Library or Windows Form project).

So, I tried modify my NHibernateHelper for search configuration files in App_Code folder ... see:



DirectoryInfo di = new DirectoryInfo(@"C:\Documents and Settings\Mateus\Meus documentos\Visual Studio 2005\Persistencia\App_Code\");
Configuration cfg = new Configuration();
cfg.AddDirectory(di);
_sessionFactory = cfg.BuildSessionFactory();



When I run the project, show exeption:


Could not compile the mapping document: C:\Documents and Settings\Mateus\Meus documentos\Visual Studio 2005\Persistencia\App_Code\Task.hbm.xml



I need help ... for to solve it.
Thanks

Mateus.


Top
 Profile  
 
 Post subject: Any progress so far?
PostPosted: Thu May 17, 2007 9:30 am 
Newbie

Joined: Thu May 17, 2007 8:16 am
Posts: 2
Location: Brazil
Hi there Mateus,

The Nhibernate learning curve really seems to be a big one. I think it takes about a month for someone to really build something "acceptable" using the framework.

Have you succeeded in developing something with NHibernate and ASP.NET? I'm trying a bit of that myself and I'm having a bit of trouble.

Could you email me if you have any good working examples?

marcosaccioly@gmail.com

Cheers,

_________________
Marcos Accioly
Web Designer
Accioly Design and Development


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 19, 2007 9:12 am 
Newbie

Joined: Wed Jun 21, 2006 2:45 pm
Posts: 16
You should look here:
http://www.codeproject.com/aspnet/NHibe ... ctices.asp

Sample code, good explanation of how it works, etc...

A "must-have" for anyone working with NHibernate and ASP.NET

(This link above should be a sticky on the forum I think)


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.