You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.ArgumentException: An item with the same key has already been added. Key: TYPE
at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at MixERP.Net.VCards.Parser.TokenParser.GetAdditionalKeyMembers(String data) at MixERP.Net.VCards.Parser.TokenParser.GetToken(String line) at MixERP.Net.VCards.Parser.TokenParser.Parse(String contents) at MixERP.Net.VCards.Deserializer.GetVCard(String contents) at System.Linq.Enumerable.SelectArrayIterator2.ToList()
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at MixERP.Net.VCards.Deserializer.GetVCards(String contents)
The text was updated successfully, but these errors were encountered:
My fix was extracting it and putting a try catch around the dictionary.Add(key, value) in the method VCardUtil.GetAdditionalKeyMembers
Its everything else but beautiful but it makes it work
System.ArgumentException: An item with the same key has already been added. Key: TYPE
at System.Collections.Generic.Dictionary
2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at MixERP.Net.VCards.Parser.TokenParser.GetAdditionalKeyMembers(String data) at MixERP.Net.VCards.Parser.TokenParser.GetToken(String line) at MixERP.Net.VCards.Parser.TokenParser.Parse(String contents) at MixERP.Net.VCards.Deserializer.GetVCard(String contents) at System.Linq.Enumerable.SelectArrayIterator
2.ToList()at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at MixERP.Net.VCards.Deserializer.GetVCards(String contents)
The text was updated successfully, but these errors were encountered: