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.  [ 1 post ] 
Author Message
 Post subject: Did anybody use Nhibernate 2.0 / Nhibernate Burrow and IIS7
PostPosted: Tue Sep 16, 2008 9:43 pm 
Newbie

Joined: Tue Aug 09, 2005 10:28 pm
Posts: 10
Location: Florida
I am using nhibernate version 2.0, together with Nhibernate.Burrow 1.0 RC1
to create a small web site for testing, on top of IIS7 .

Here is my configuration :
<configSections>
<section name="NHibernate.Burrow" type="NHibernate.Burrow.Configuration.NHibernateBurrowCfgSection"
allowDefinition="Everywhere" allowExeDefinition="MachineToApplication" restartOnExternalChanges="true"/>
</configSections>

<NHibernate.Burrow>
<persistantUnits>
<add name="PersistenceUnit1" nh-config-file="hibernate.cfg.xml" autoUpdateSchema="true"/>
</persistantUnits>
</NHibernate.Burrow>

<system.webServer>
<modules>
<add name="NHibernate.Burrow.WebUtil.HttpModule" type="NHibernate.Burrow.WebUtil.WebUtilHTTPModule,NHibernate.Burrow.WebUtil" />
</modules>
</system.webServer>


When I try to access the session I get the error below. Can anyone help me with this? Thanks a lot


Line 24: //}
Line 25: CustomerDAO dao = new CustomerDAO();
Line 26: Customer c = dao.Get(1);
Line 27:
Line 28: Response.ContentType = "application/vnd.adobe.xfdf; charset=utf-8";


Source File: c:\bancorp\PDFReceiver\PDFFieldsReceiver.aspx Line: 26

Stack Trace:

[ConversationUnavailableException: Either workspace is not initialized yet or it is closed]
NHibernate.Burrow.BurrowFramework.GetSession(Type entityType) +147
NHibernate.Burrow.AppBlock.DAOBases.GenericDAO`1.get_Session() +65
NHibernate.Burrow.AppBlock.DAOBases.GenericDAO`1.Get(Object id) +40
ASP.pdffieldsreceiver_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\bancorp\PDFReceiver\PDFFieldsReceiver.aspx:26
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Page.Render(HtmlTextWriter writer) +29
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266



Thanks a lot,

Joao,


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.