1

Closed

Exception while persiting an object

description

An Exception was throun through persisting an related object in Chilli.OPF3.Relations.ObjectHolder_1.cs
Reason: ManagedObject wouldn't cast into the correct generic type (ObjectContext.PersistChanges).
 
Chili.Opf3.Mapping.MappingException: Cannot create mapping for type 'System.Object' without persistent attribute.
bei Chili.Opf3.Mapping.Providers.MappingBuilder.CreatePersistentMapping(Type type) in D:_LobIT\Public\Opf3\Chili.Opf3\Mapping\Providers\MappingBuilder.cs:Zeile 83.
bei Chili.Opf3.Mapping.MappingContainer.GetTypeMapping(Type type) in D:_LobIT\Public\Opf3\Chili.Opf3\Mapping\MappingContainer.cs:Zeile 63.
bei Chili.Opf3.Mapping.TypeMapping.GetTypeMapping(Type type) in D:_LobIT\Public\Opf3\Chili.Opf3\Mapping\TypeMapping.cs:Zeile 115.
bei Chili.Opf3.Storages.StorageObjectReader1..ctor(ObjectContext context, IDataReader dataReader) in D:\_LobIT\Public\Opf3\Chili.Opf3\Storages\StorageObjectReader_1.cs:Zeile 44.
bei Chili.Opf3.Storages.SqlStorageBase.ExecuteReader[T](ObjectContext context, IQuery query) in D:\_LobIT\Public\Opf3\Chili.Opf3\Storages\SqlStorageBase.cs:Zeile 153.
bei Chili.Opf3.Storages.MsSql.MsSqlStorage.ExecuteReader[T](ObjectContext context, IQuery query) in D:\_LobIT\Public\Opf3\Chili.Opf3\Storages\MsSql\MsSqlStorage.cs:Zeile 184.
bei Chili.Opf3.ObjectContext.GetObjectReader[T](IQuery query, Boolean ignoreCache) in D:\_LobIT\Public\Opf3\Chili.Opf3\ObjectContext.cs:Zeile 883.
bei Chili.Opf3.ObjectContext.GetObjectReader[T](IQuery query) in D:\_LobIT\Public\Opf3\Chili.Opf3\ObjectContext.cs:Zeile 825.
bei Chili.Opf3.Concurrency.Md5.Md5ConcurrencyManager.OnBeforeUpdate[T](T obj, ConcurrencyManagerEventArgs e) in D:\_LobIT\Public\Opf3\Chili.Opf3\Concurrency\Md5\Md5ConcurrencyManager.cs:Zeile 53.
bei Chili.Opf3.ObjectPersister.Update[T](T obj, ObjectInfo objectInfo, PersistDepths persistDepth) in D:\_LobIT\Public\Opf3\Chili.Opf3\ObjectPersister.cs:Zeile 309.
bei Chili.Opf3.ObjectPersister.PersistChanges[T](T obj, PersistDepths persistDepth) in D:\_LobIT\Public\Opf3\Chili.Opf3\ObjectPersister.cs:Zeile 142.
bei Chili.Opf3.ObjectContext.PersistChanges[T](T obj, PersistDepths persistDepth) in D:\_LobIT\Public\Opf3\Chili.Opf3\ObjectContext.cs:Zeile 2129.
bei Chili.Opf3.Relations.ObjectHolder
1.PersistChanges(ObjectContext context, PersistDepths persistDepth) in D:_LobIT\Public\Opf3\Chili.Opf3\Relations\ObjectHolder_1.cs:Zeile 268.
bei Chili.Opf3.Relations.RelationsManager.PersistRelated(Object obj, PersistRelationships persistRelationship, PersistDepths persistDepth, PersistentOperations persistentOperation) in D:_LobIT\Public\Opf3\Chili.Opf3\Relations\RelationsManager.cs:Zeile 158.
bei Chili.Opf3.ObjectContext.PersistChanges[T](T obj, PersistDepths persistDepth) in D:_LobIT\Public\Opf3\Chili.Opf3\ObjectContext.cs:Zeile 2129.
bei Chili.Opf3.ObjectContext.PersistChanges[T](T obj) in D:_LobIT\Public\Opf3\Chili.Opf3\ObjectContext.cs:Zeile 2024.
Closed Dec 11, 2009 at 4:44 AM by littleguru

comments

kommSolutions wrote Sep 14, 2009 at 11:59 AM

Related to Patch: 3868

wrote Oct 7, 2009 at 12:32 AM

wrote Oct 9, 2009 at 3:54 PM

wrote Dec 11, 2009 at 4:44 AM

wrote Feb 13, 2013 at 11:28 PM

wrote May 16, 2013 at 5:07 AM