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!
|