nHibernate mapping exception

E

erin.sebastian

Hello All,
I am new to hibernate and new to nHibernate. I created a small app and
when i try and run it i get the error i posted at the bottom of this
message. I am using the helper class that can be found here
http://blogs.intesoft.net/simon/articles/16.aspx#36 . Does anyone know
why this error might occur.. i have NO IDEA.... if you require anymore
information please let me know and i will send it through.
Thanks in advance!
Erin

Server Error in '/test/nHibernateTest' Application.
--------------------------------------------------------------------------------

Unknown entity class:
nHibernateTest.Persistence.nHibernate.SharepointObjectTitles
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: NHibernate.MappingException: Unknown entity class:
nHibernateTest.Persistence.nHibernate.SharepointObjectTitles

Source Error:


Line 149: public static void Load(System.Type type, object id)
Line 150: {
Line 151: Database.Session.Load(type, id);
Line 152: }
Line 153:


Source File:
c:\inetpub\wwwroot\test\nhibernatetest\nhibernatehelper\database.cs
Line: 151

Stack Trace:


[MappingException: Unknown entity class:
nHibernateTest.Persistence.nHibernate.SharepointObjectTitles]
NHibernate.Impl.SessionFactoryImpl.GetPersister(Type theClass)
NHibernate.Impl.SessionImpl.GetClassPersister(Type theClass)
NHibernate.Impl.SessionImpl.DoLoadByClass(Type clazz, Object id,
Boolean checkDeleted, Boolean allowProxyCreation)
NHibernate.Impl.SessionImpl.Load(Type clazz, Object id)
nHibernateTest.NHibernateHelper.Database.Load(Type type, Object id)
in
c:\inetpub\wwwroot\test\nhibernatetest\nhibernatehelper\database.cs:151
nHibernateTest.nHibernateTest.Page_Load(Object sender, EventArgs e)
in c:\inetpub\wwwroot\test\nhibernatetest\nhibernatetest.aspx.cs:29
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top