-->
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: Migration from NHibernate 1.0 to 1.2 with ASP.NET 2.0
PostPosted: Fri May 25, 2007 4:25 am 
Newbie

Joined: Fri May 25, 2007 3:51 am
Posts: 1
Hi,

currently I'm developing an ASP.NET 2.0 application using NHibernate 1.0 as persistence framework. This works fine.

Now I'd like to use the new NHibernate version 1.2 because of its new features. I followed the migration guide (esp. concerning the metadata changes), replaced the concerning DLLs (NHibernate, Nullables, Nullables.NHibernate, Iesi.Collections, Castle.DynamicProxy) and got the following problem:

We need the ASP compatibility mode in some pages because of use of the Windows Presentation Framework (part of .NET Framework 3.0). But pages with the attribute AspCompat="true" can't be shown. I get the following error:

System.Web.HttpException: An error was encountered while calling OnStartPage in ASP compatibility mode.

Stack Trace:
[HttpException (0x80004005): An error was encountered while calling OnStartPage in ASP compatibility mode.]
System.Web.Util.AspCompatApplicationStep.OnPageStartSessionObjects() +780634
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1996



If I only change the DLLs (and the schema namespaces) back to version 1.0 and leave the other metadata as it is, it works as before.

I have no idea why the replacement of these DLLs have this effect.

What is the reason for this behaviour?
Do I have to make other changes?
Are there any incompatibilities, e.g. between DLLs?


Thanks for any help!


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.