Problem opening a projectfile

Posts   
 
    
JayBee
User
Posts: 275
Joined: 28-Dec-2006
# Posted on: 13-Dec-2011 16:08:35   

Hi,

When I try to open a projectfile an error is given: An item with the same key already has been added (or something like this, the original message is in Dutch).

I copied the following info to the clipboard. Is there anything I can do to solve this? E.g. manually correcting the projectfile.

Exception information.

LLBLGen Pro version: v3.1. Build: September 30th, 2011

Exception details:

Message: Er is al een item met dezelfde sleutel toegevoegd. Source: mscorlib Stack trace: bij System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) bij System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) bij System.Collections.Generic.Dictionary2.Add(TKey key, TValue value) bij System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer) bij System.Linq.Enumerable.ToDictionary[TSource,TKey](IEnumerable1 source, Func2 keySelector) bij SD.LLBLGen.Pro.ApplicationCore.Mapping.FieldMappingList.DeserializeFromReader(XmlReader reader, Project containingProject, GroupableModelElementMapping containingMapping) bij SD.LLBLGen.Pro.ApplicationCore.Mapping.GroupableModelElementMapping.DeserializeFromReader(XmlReader reader, Project containingProject) bij SD.LLBLGen.Pro.ApplicationCore.Mapping.DatabaseMappingData.DeserializeMappings[TMapping,TElement](XmlReader reader, Project containingProject, Dictionary2 elementsPerFullName, String elementAttributeName, Func2 mappingCreationFunc, ICollection`1 container) bij SD.LLBLGen.Pro.ApplicationCore.Mapping.DatabaseMappingData.DeserializeEntityMappings(XmlReader reader, Project containingProject) bij SD.LLBLGen.Pro.ApplicationCore.Mapping.DatabaseMappingData.DeserializeFromReader(XmlReader reader, Project containingProject) bij SD.LLBLGen.Pro.ApplicationCore.Mapping.MappingDataStore.DeserializeMappingStore(XmlReader reader) bij SD.LLBLGen.Pro.ApplicationCore.Mapping.MappingDataStore.DeserializeFromReader(XmlReader reader) bij SD.LLBLGen.Pro.ApplicationCore.ProjectClasses.Project.DeserializeFromReader(XmlReader reader, String additionalTypeConverterFolder) bij SD.LLBLGen.Pro.ApplicationCore.ProjectClasses.Project.Load(String filename, String additionalTypeConverterFolder) bij SD.LLBLGen.Pro.Gui.Classes.GuiController.PerformOpenProjectAction(String filenameToOpen)

Inner exception: <null>

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 13-Dec-2011 21:13:23   

I don't understand Dutch simple_smile but if you could open a HelpDesk thread (which is private) and attach your .llblgenproj file, it would be useful in understanding the exception.

Did you receive this suddenly or do you remember something you did before (some model changes, db changes, an unusual refresh, upgrade, etc)?

David Elizondo | LLBLGen Support Team
JayBee
User
Posts: 275
Joined: 28-Dec-2006
# Posted on: 13-Dec-2011 22:34:08   

Short after I tried Walaas answer on my question regarding the automapping of a decimal field (see http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=20482) I saved the project file. After that I could not open it. I only recall removing a foreign key and adding a new field for it. Than I deleted a relationship because the foreing key was no longer there and I added a new one to the new foreign key.

I'll open a case at the Helpdesk aswell.