Our web site uses Nhibernate & it works fine on all dev PC's & all but
1 server.  1 server continually gets the error listed below.  If we
recopy the site to the server it will work fine for a while & then
we'll start getting this error again.  I've never seen this error on
another box & all servers are running the same code.  Any ideas?
Could this be permission related?  This started after we tried to
change the app pool to a domain account.  We switched back to Network
Service & we're still getting this error.

I turned on logging but the log files for Nhibernate but I did not see
anything that would shed light no what the issue is.




ERROR WE ARE GETTING

[ArgumentException: An item with the same key has already been added.]
   System.ThrowHelper.ThrowArgumentException(ExceptionResource
resource) +51
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue
value, Boolean add) +7464300
   System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
+11
   NHibernate.Util.ThreadSafeDictionary`2.Add(TKey key, TValue value)
+105
   NHibernate.SqlTypes.SqlTypeFactory.GetTypeWithLen(Int32 length,
TypeWithLenCreateDelegate createDelegate) +114
   NHibernate.SqlTypes.SqlTypeFactory.GetString(Int32 length) +79
   NHibernate.Type.TypeFactory.<RegisterDefaultNetTypes>b__d(Int32
len) +23
   NHibernate.Type.TypeFactory.GetType(NullableType
defaultUnqualifiedType, Int32 length, GetNullableTypeWithLength
ctorDelegate) +67
   NHibernate.Type.TypeFactory.<RegisterDefaultNetTypes>b__c(Int32 l)
+83
   NHibernate.Type.TypeFactory.BuiltInType(String typeName, Int32
length) +46
   NHibernate.Mapping.SimpleValue.GetHeuristicType() +127
   NHibernate.Mapping.SimpleValue.get_Type() +50
 
NHibernate.Cfg.XmlHbmBinding.ClassIdBinder.CreateIdentifierProperty(HbmId
idSchema, PersistentClass rootClass, SimpleValue id) +136
   NHibernate.Cfg.XmlHbmBinding.ClassIdBinder.BindId(HbmId idSchema,
PersistentClass rootClass, Table table) +54
   NHibernate.Cfg.XmlHbmBinding.RootClassBinder.Bind(XmlNode node,
HbmClass classSchema, IDictionary`2 inheritedMetas) +460
 
NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.AddRootClasses(XmlNode
parentNode, IDictionary`2 inheritedMetas) +198
   NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.Bind(XmlNode node)
+89
   NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument
doc) +175




Could not compile the mapping document:
OurNamespace.Mappings.OutTable.hbm.xml
   NHibernate.Cfg.Configuration.LogAndThrow(Exception exception) +56
   NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument
doc) +249
   NHibernate.Cfg.Configuration.ProcessMappingsQueue() +17
 
NHibernate.Cfg.Configuration.AddDocumentThroughQueue(NamedXmlDocument
document) +24
   NHibernate.Cfg.Configuration.AddXmlReader(XmlReader hbmReader,
String name) +26
   NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream,
String name) +109
   NHibernate.Cfg.Configuration.AddResource(String path, Assembly
assembly) +174
   NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly) +147
   NHibernate.Cfg.Configuration.AddAssembly(String assemblyName) +148
   NHibernate.Cfg.Configuration.DoConfigure(IHibernateConfiguration
hc) +604
   NHibernate.Cfg.Configuration.Configure() +57
...more site specific errors omitted...

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
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