This project has moved and is read-only. For the latest updates, please go here.
1
Vote

Item has already been added. Key in dictionary: 'A' Key being added : 'a'

description

Hello
This is a .net 4.0 windows form project.
When i press login button , i get an exception:
The type initializer for "Tacirler_Earsiv.Genel" threw an exception

In the inner exception says:
Item has already been added. Key in dictionary: 'A' Key being added : 'a'

"Genel" class is very simple and short. It has a few static properties. I just assign userName and userId info to its properties.

Do you have any idea?
I have attach mapping.txt, obfuscar.xml and Genel.cs.

file attachments

comments

lextm wrote Jul 16, 2016 at 8:20 AM

Thanks for the report. Will investigate and get back here.

lextm wrote Jul 16, 2016 at 12:08 PM

I could not reproduce this issue with the information you provided. Hope that you can share more data by sending them to my mail box support@lextm.com

dkasar wrote Jul 18, 2016 at 2:03 PM

I have sent you an email. It contains my sample project. Thank you.

lextm wrote Aug 6, 2016 at 9:46 AM

Now this issue can be reproduced. Initial analysis shows that it only happens if the project uses a ApplicationSettingsBase derived Settings class. Will do more investigation.

A workaround is to add a skip rule, such as
 <SkipType name="Tacirler_Earsiv_Obfuscar.Properties.Settings" skipProperties="true" />

lextm wrote Aug 6, 2016 at 9:50 AM

Another rule to use is,
<SkipProperty type="Tacirler_Earsiv_Obfuscar.Properties.Settings" rx="." />