Need help with Hibernate? Read this first:
I'm using NHibernate 1.2.1.4000 and I've run into a bit of a problem.
I've written a little DLL that will load an encrypted XML doc, decrypt it and translate the strings. I've created a test winforms app that calls this DLL and returns the expected results.
Now our web developers want to use this. So we've got a CF page set up that we're testing it out. All of a sudden I'm getting Unknown Entity Class: CrActivity.
I've checked, and re-checked that my hbm.xml files all point to embedded.
The line it is erroring out on is:
Code:
CRActivity activity = (CRActivity)mAtlasSession.Get(typeof(CRActivity), activityId);
Code:
NHibernate.MappingException: Unknown entity class: QuoteLocalization.CRActivity
at NHibernate.Impl.SessionFactoryImpl.GetEntityPersister(Type theClass)
at NHibernate.Impl.SessionImpl.GetClassPersister(Type theClass)
at NHibernate.Impl.SessionImpl.DoLoadByClass(Type clazz, Object id, Boolean checkDeleted, Boolean allowProxyCreation)
at NHibernate.Impl.SessionImpl.Get(Type clazz, Object id)
at QuoteLocalization.DataAccess.GetQuoteXml(Int32 activityId)
Has anyone done any work using a .Net DLL w/ NHibernate inside a CF page? Or do you have any clues why this isn't working?