473,320 Members | 1,939 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

nHibernate mapping exception

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.SharepointOb jectTitles
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.SharepointOb jectTitles

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\nhibernateh elper\database.cs
Line: 151

Stack Trace:
[MappingException: Unknown entity class:
nHibernateTest.Persistence.nHibernate.SharepointOb jectTitles]
NHibernate.Impl.SessionFactoryImpl.GetPersister(Ty pe 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\nhibernateh elper\database.cs:151
nHibernateTest.nHibernateTest.Page_Load(Object sender, EventArgs e)
in c:\inetpub\wwwroot\test\nhibernatetest\nhibernatet est.aspx.cs:29
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()

Apr 11 '06 #1
1 13651
Erin,

Try to get your answer from this forum:
http://forum.hibernate.org/viewforum.php?f=25

Cheers,
kids

er************@cowaninsurancegroup.com wrote:
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.SharepointOb jectTitles
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.SharepointOb jectTitles

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\nhibernateh elper\database.cs
Line: 151

Stack Trace:
[MappingException: Unknown entity class:
nHibernateTest.Persistence.nHibernate.SharepointOb jectTitles]
NHibernate.Impl.SessionFactoryImpl.GetPersister(Ty pe 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\nhibernateh elper\database.cs:151
nHibernateTest.nHibernateTest.Page_Load(Object sender, EventArgs e)
in c:\inetpub\wwwroot\test\nhibernatetest\nhibernatet est.aspx.cs:29
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()

Apr 12 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Rob | last post by:
We are starting a new fairly big project based on the typical 3-tier approach (db, business, GUI layer). I have limited experience in that field but from my experience all the stored procedures,...
8
by: Roman | last post by:
Hello i got this simple problem using nhibernate. I want to chang the id( primary key of the) object and update it, to change this key. i me getting nhibernate exception like this: identifier...
1
by: Ram | last post by:
Hey, I'm having a trouble mapping a connecting between 2 of my tables. We have 2 tables - the simplest "dept", "emp" tables which are mapped to 2 classes. Class Dept contains 2 properties for...
1
by: sternr | last post by:
Hey, I'm using NHibernate version: 1.0.0.2 My Mapping documents: <class name="DM.Book" table="Books"> <id column="bookId" name="bookId"> <generator class="assigned" /> </id> <property...
5
by: Prem Kumar | last post by:
Hi Can somebody throw some light on what are these tools and which is the best to use? I would like to know, where do these tools fit in ? and how does it help? Thanks Prem
0
by: Pieter | last post by:
Hi, I'm using NHibernate 1.2 (CR1), and I'm using a custom list (inherited from BindingList(Of T) ) for all my lists. The NHibernate documentation told me that I had to implement...
4
by: IceMan | last post by:
Hi, I am using the configuration object and passing it a Assembly object to load. The assembly object i pass in is from a dll which is in a different folder then the Nhibernate dll. The...
0
by: Jacques Vandensavel | last post by:
I have a legacy table which is composed out three key fields. It is representing a bank. I'm using NHibernate in my ASP.NET application to glue everything together. I'm already searching for an...
14
by: thj | last post by:
Hi, I was wondering what you guys are using and why? LINQ to SQL or NHibernate? Thanks in advance, Tommy
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.