-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Key cannot be null error
PostPosted: Thu Dec 01, 2005 3:55 am 
Newbie

Joined: Thu Dec 01, 2005 3:45 am
Posts: 1
Hello all,

I have an ASP.NET problem which does not occur on winforms application.
Here is my code snippest of my page:

Sub Page_Load(Sender As Object, E As EventArgs)
Dim cfg As New nhibernate.Cfg.Configuration()
Dim factory As ISessionFactory=cfg.BuildSessionFactory()
Dim session As ISession=factory.OpenSession()
Dim clazz As NHibernate.Mapping.PersistentClass
Dim typ as System.Type

cfg.AddAssembly("images")
typ=System.Type.GetType("images.images")
clazz = cfg.GetClassMapping(typ)
end sub

When I run this page with the marked line I get:
Key cannot be null. Parameter name: key

And here are the few first line of the detailed error:

[ArgumentNullException: Key cannot be null.
Parameter name: key]
System.Collections.Hashtable.get_Item(Object key) +306

Please help me,
Ran


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 01, 2005 9:44 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Apparently the GetType call returns null or the type isn't mapped. This is not a bug in NHibernate.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.