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.nHi bernate.Sharepo intObjectTitles
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.Mapp ingException: Unknown entity class:
nHibernateTest. Persistence.nHi bernate.Sharepo intObjectTitles
Source Error:
Line 149: public static void Load(System.Typ e type, object id)
Line 150: {
Line 151: Database.Sessio n.Load(type, id);
Line 152: }
Line 153:
Source File:
c:\inetpub\wwwr oot\test\nhiber natetest\nhiber natehelper\data base.cs
Line: 151
Stack Trace:
[MappingExceptio n: Unknown entity class:
nHibernateTest. Persistence.nHi bernate.Sharepo intObjectTitles]
NHibernate.Impl .SessionFactory Impl.GetPersist er(Type theClass)
NHibernate.Impl .SessionImpl.Ge tClassPersister (Type theClass)
NHibernate.Impl .SessionImpl.Do LoadByClass(Typ e clazz, Object id,
Boolean checkDeleted, Boolean allowProxyCreat ion)
NHibernate.Impl .SessionImpl.Lo ad(Type clazz, Object id)
nHibernateTest. NHibernateHelpe r.Database.Load (Type type, Object id)
in
c:\inetpub\wwwr oot\test\nhiber natetest\nhiber natehelper\data base.cs:151
nHibernateTest. nHibernateTest. Page_Load(Objec t sender, EventArgs e)
in c:\inetpub\wwwr oot\test\nhiber natetest\nhiber natetest.aspx.c s:29
System.Web.UI.C ontrol.OnLoad(E ventArgs e)
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.P age.ProcessRequ estMain()