An item with the same key has already been added

5 posts, 0 answers
  1. Richard
    Richard avatar
    1 posts
    Member since:
    Jul 2014

    Posted 28 Apr 2015 Link to this post

    Trying to open a DLL named DotNetBrowser.dll

     Current member / type: DotNetBrowser
    File path: F:\Apps\DotNetBrowser\dotnetbrowser-1.0\Library\DotNetBrowser.dll

    Product version: 2015.1.408.0
    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 Mono.Cecil.MetadataReader.InitializeNestedTypes() in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 834
    at Mono.Cecil.MetadataReader.InitializeTypeDefinitions() in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 755
    at Mono.Cecil.MetadataReader.ReadTypes() in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\AssemblyReader.cs:line 719
    at Mono.Cecil.ModuleDefinition.<get_Types>b__8(ModuleDefinition _, MetadataReader reader) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\ModuleDefinition.cs:line 457
    at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TRet& variable, TItem item, Func`3 read) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\ModuleDefinition.cs:line 985
    at Mono.Cecil.ModuleDefinition.get_Types() in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Decompiler\Mono.Cecil\Mono.Cecil\ModuleDefinition.cs:line 457
    at “.™.”(ModuleDefinition €, • •) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Decompiler\Cecil.Decompiler\Decompiler\MemberRenamingServices\DefaultMemberRenamingService.cs:line 33
    at “.™.‘(ModuleDefinition €) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Decompiler\Cecil.Decompiler\Decompiler\MemberRenamingServices\DefaultMemberRenamingService.cs:line 26
    at ——.ƒ˜.‘(ModuleDefinition €, ILanguage ) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Decompiler\Cecil.Decompiler\Decompiler\WriterContextServices\BaseWriterContextService.cs:line 36
    at ——.‡˜.‹”(ModuleDefinition €, ILanguage ) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Decompiler\Cecil.Decompiler\Decompiler\WriterContextServices\SimpleWriterContextService.cs:line 98
    at Ÿ˜.‹ž.ƒž(AssemblyDefinition , –— ’, Boolean , ICollection`1 „ž) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\Decompiler\Cecil.Decompiler\Languages\BaseAssemblyAttributeWriter.cs:line 63
    at ..Write(˜ ‹Ž) in c:\Builds\245\Behemoth\ReleaseBranch Production Build\Sources\UI\JustDecompile.CodeViewer\Writers\AssemblyAttributeCodeViewerWriter.cs:l

     

  2. Alexander
    Admin
    Alexander avatar
    80 posts

    Posted 30 Apr 2015 Link to this post

    Hi there,

    Thanks for letting us know about this problem. I really appreciate this.

    Would it be possible that you zip the assembly where that happens and send it over to my email - 
    alexander.dimitrov at telerik.com? Rather unfortunately, that seems to be the only way to reproduce that problem.

    Thank you in advance.


    Regards,
    Alexander
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. DevCraft banner
  4. Alexander
    Admin
    Alexander avatar
    80 posts

    Posted 30 Apr 2015 Link to this post

    Hello Richard,

    Thank you for sending me the assembly. Your help is very appreciated.

    It looks like the assembly causing the problem is post-processed with some tool after compilation. Normally this would be an obfuscator or MSIL optimizer.  Rather unfortunately, this is not a supported scenario in JustDecompile.


    Regards,
    Alexander
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  5. ats
    ats avatar
    1 posts
    Member since:
    Jul 2015

    Posted 29 Jul 2015 Link to this post

    Error1Build failed: An item with the same key has already been added..
    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.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
       at Telerik.BlackDragon.Client.Build.PrepareBuild.GetFilteredSourceFiles(ILogHelper logger)
       at Telerik.BlackDragon.Client.Build.PrepareBuild.ExecuteCore(IHttpServiceContext httpServiceContext, LogHelper logger)C:\Users\ATS\AppData\Local\Microsoft\VisualStudio\12.0\Extensions\rbao0cb4.2au\Targets\Build.targets1494WBESApp

  6. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 31 Jul 2015 Link to this post

    Hi ats,

    As this error is not related to JustDecomplile, I would kindly ask you to post such inquiries in the respective forum next time. Thank you for your understanding in advance.

    Further, please check here for a solution to the issue. I hope it helps.

    Regards,
    Kaloyan
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
DevCraft banner