I am currently upgrading from LLBLGen 4.2 to 5.3. I am using VB, Adapter model. FastSerialization.
When I add a new entity to an entitycollection in one of my graphs, I get a serialization error upon Deserialization. I am using .NET remoting. I did not get the same error in 4.2 and do not get the same error if I turn FastSerialization off. I have not changed my database structure at all, just regenerated using the new version.
The error is:
{"Index was outside the bounds of the array."}
in
at SD.LLBLGen.Pro.ORMSupportClasses.FastDeserializer.ReadOneWayRelationInfo(IEntity2 entity)
at SD.LLBLGen.Pro.ORMSupportClasses.FastDeserializer.ReadUnreferencedEntity(EntityBase2 entity, BitVector32 serializationFlags)
at SD.LLBLGen.Pro.ORMSupportClasses.FastDeserializer.ReadCollection(IFastSerializableEntityCollection2 collection, BitVector32 serializationFlags)
at SD.LLBLGen.Pro.ORMSupportClasses.FastDeserializer.ReadEntityMemberCollections(EntityBase2 entity)
at SD.LLBLGen.Pro.ORMSupportClasses.FastDeserializer.ReadReferencedEntities(EntityBase2 rootEntity)
at SD.LLBLGen.Pro.ORMSupportClasses.FastDeserializer.Deserialize(EntityBase2 entity)
at SD.LLBLGen.Pro.ORMSupportClasses.EntityBase2..ctor(SerializationInfo info, StreamingContext context)
at Coda.Entities.EntityClasses.CommonEntityBase..ctor(SerializationInfo info, StreamingContext context)
at Coda.Entities.EntityClasses.EmployeeEntity..ctor(SerializationInfo info, StreamingContext context)
I don't get this error in any other circumstances (that I can tell), but one. Very odd. Without much detail (sorry), do you have any idea of what may be causing the issue. The only foreign keys in the entity are strings.
Thanks.