system.argumentexception - an item with the same name has already been added
Reported by Ben Scheirman | April 28th, 2009 @ 02:10 PM
I'm not sure what the problem is, as it doesn't throw an informative exception (maybe I can submit a patch for this) but in any case, here is the stack trace...
C:\sandbox\cnp\cnp.framework\trunk>tools\docu\docu build\net-> 3.5-CNP.Framework-0.5-Debug\CNP.Framework.dll
docu: simple docs done simply
Starting documentation generation
Unhandled Exception: System.ArgumentException: An item with > the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary
2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary
2.Add(TKey key, TValue value) at Docu.Documentation.DocumentModel.AddProperty(List1 namespaces, DocumentedProperty association) in > C:\Users\Administrator\dev\docu\src\Docu.Console\Documentation\DocumentModel.cs:line 166 at Docu.Documentation.GenerationStep
1.<Docu.Documentation.IGenerationStep.get_Action>b__2(List1 x, IDocumentationMember y) in > C:\Users\Administrator\dev\docu\src\Docu.Console\Documentation\GenerationStep.cs:line 23 at Docu.Documentation.DocumentModel.Create(IEnumerable
1 members) in > C:\Users\Administrator\dev\docu\src\Docu.Console\Documentation\DocumentModel.cs:line 47 at Docu.Parsing.AssemblyXmlParser.CreateDocumentModel(IEnumerable1 assemblies, IEnumerable
1 xml) in > C:\Users\Administrator\dev\docu\src\Docu.Console\Parsing\AssemblyXmlParser.cs:line 27 at Docu.DocumentationGenerator.Generate() in C:\Users\Administrator\dev\docu\src\Docu.Console\DocumentationGenerator.cs:line 88 at Docu.Console.ConsoleApplication.Run() in C:\Users\Administrator\dev\docu\src\Docu.Console\Console\ConsoleApplication.cs:line 83 at Docu.Program.Main(String[] args) in C:\Users\Administrator\dev\docu\src\Docu.Console\Program.cs:line 11
Comments and changes to this ticket
-
James Gregory April 28th, 2009 @ 02:17 PM
There were two other issues raised quite recently that sound similar, do any of these two sound familiar?
- Two classes with the same name (e.g. DTOs.User and Domain.User)
- More than one default indexer on a class
If so, then you've hit one of the existing issues. If not, then we'll need to do some more investigation.
-
James Gregory May 3rd, 2009 @ 08:45 AM
- State changed from new to invalid
Closed - already fixed in master.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Simple documentation done simply