This is a migrated thread and some comments may be shown as answers.

An item with the same key has already been added

4 Answers 122 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 28 Apr 2015, 04:33 PM

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

 

4 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 30 Apr 2015, 11:27 AM
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.

 
0
Alexander
Telerik team
answered on 30 Apr 2015, 05:04 PM
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.

 
0
ats
Top achievements
Rank 1
answered on 29 Jul 2015, 07:05 AM
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

0
Kaloyan
Telerik team
answered on 31 Jul 2015, 02:14 PM
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
Tags
General Discussions
Asked by
Richard
Top achievements
Rank 1
Answers by
Alexander
Telerik team
ats
Top achievements
Rank 1
Kaloyan
Telerik team
Share this question
or