I am using NHibernate in Web Application. The first time I run on IIS 7 my 
webApp everything is OK. The second time I run it I get this: *An item with 
the same key has already been added*. Any idea what I am doing wrong?
 
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, 
Boolean add)
   at NHibernate.Util.ThreadSafeDictionary`2.Add(TKey key, TValue value) in 
d:\CSharp\NH\NH\nhibernate\src\NHibernate\Util\ThreadSafeDictionary.cs:line 
44
   at NHibernate.Type.TypeFactory.GetType(NullableType 
defaultUnqualifiedType, Int32 length, GetNullableTypeWithLength 
ctorDelegate) in 
d:\CSharp\NH\NH\nhibernate\src\NHibernate\Type\TypeFactory.cs:line 611
   at NHibernate.Type.TypeFactory.BuiltInType(String typeName, Int32 length) 
in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Type\TypeFactory.cs:line 392
   at NHibernate.Mapping.SimpleValue.GetHeuristicType() in 
d:\CSharp\NH\NH\nhibernate\src\NHibernate\Mapping\SimpleValue.cs:line 259
   at NHibernate.Mapping.SimpleValue.get_Type() in 
d:\CSharp\NH\NH\nhibernate\src\NHibernate\Mapping\SimpleValue.cs:line 231
   at NHibernate.Mapping.SimpleValue.IsValid(IMapping mapping) in 
d:\CSharp\NH\NH\nhibernate\src\NHibernate\Mapping\SimpleValue.cs:line 327
   at NHibernate.Mapping.PersistentClass.Validate(IMapping mapping) in 
d:\CSharp\NH\NH\nhibernate\src\NHibernate\Mapping\PersistentClass.cs:line 
950
   at NHibernate.Mapping.RootClass.Validate(IMapping mapping) in 
d:\CSharp\NH\NH\nhibernate\src\NHibernate\Mapping\RootClass.cs:line 372
   at NHibernate.Cfg.Configuration.ValidateEntities() in 
d:\CSharp\NH\NH\nhibernate\src\NHibernate\Cfg\Configuration.cs:line 1021
   at NHibernate.Cfg.Configuration.BuildSessionFactory() in 
d:\CSharp\NH\NH\nhibernate\src\NHibernate\Cfg\Configuration.cs:line 1238

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/nhusers/-/UGzH8mtJEzsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to