Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

system.argumentexception - an item with the same name has already been added

#12

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.Dictionary2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary2.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.GenerationStep1.<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(IEnumerable1 members) in > C:\Users\Administrator\dev\docu\src\Docu.Console\Documentation\DocumentModel.cs:line 47 at Docu.Parsing.AssemblyXmlParser.CreateDocumentModel(IEnumerable1 assemblies, IEnumerable1 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

Reported by Ben Scheirman · April 28th, 2009 @ 02:10 PM

State: invalid
Milestone: none
Assigned to: James Gregory James Gregory

Activity

  1. James Gregory
    James Gregory

    There were two other issues raised quite recently that sound similar, do any of these two sound familiar?

    1. Two classes with the same name (e.g. DTOs.User and Domain.User)
    2. 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.

    April 28th, 2009 @ 02:17 PM

  2. James Gregory
    James Gregory
    • State changed from new to invalid

    Closed - already fixed in master.

    May 3rd, 2009 @ 08:45 AM

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.