-->
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: Where to store SessionFactory in ASP.NET?
PostPosted: Fri Aug 17, 2007 1:42 am 
Newbie

Joined: Sun Jul 30, 2006 3:54 am
Posts: 10
I want to use NHibernate 1.0.2.0 in an ASP.NET 1.1 application.

I've read the various articles on the architecture people are recommending, and am confused. I've tried several approaches, but these don't work!

Has anyone got a concrete example of an architecture which works? I'm using VB.NET, so a VB example would be great!

BTW, I've tried storing the SessionFactory in the Application cache, but I keep getting the error:

Quote:
"The located assembly's manifest definition with name 'log4net' does not match the assembly reference."


Any pointers on what the problem is? This is driving me mad!

Thanks,

James


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 17, 2007 9:50 am 
Expert
Expert

Joined: Fri May 13, 2005 11:13 am
Posts: 292
Location: Rochester, NY
Your current problem is that you are probably using log4net 1.2.10.0, whereas NH 1.0.x used log4net 1.2.9.0. This is more of a problem than it should be, because of a problem with the log4net distributions between those two. Specifically, they "lost" their key and had to build a new one.

At any rate, if you are just starting out, why not start with the latest NH version, 1.2? It would also immediately fix the problem.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 17, 2007 10:13 am 
Newbie

Joined: Sun Jul 30, 2006 3:54 am
Posts: 10
Thanks - spot on!

The annoying thing is that I thought I was using 1.2.10.0 - but after reading your reply and checking, guess what I found?

All up and running now.


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.