I started to have some exceptions where using the pseudoselector :first. This started to happen when I changed my target framework from 4 to 4.5.1 on visual studio. The same code was run before without any errors. Everything else with CsQuery seems to keep working fine.
On my project references I have CsQuery.1.3.5.124, I guess it could be a bug, not sure. It worked fine before.
any help?
Thanks.
There
Stack trace:
[ArgumentException: The key already existed in the dictionary.]
System.Collections.Concurrent.ConcurrentDictionary`2.System.Collections.Generic.IDictionary<TKey,TValue>.Add(TKey key, TValue value) +10940468
CsQuery.Engine.PseudoSelectors.PopulateFromAssembly(Assembly assy, String[] nameSpaces) +344
CsQuery.Engine.PseudoSelectors.Register(Assembly assembly) +153
CsQuery.Engine.PseudoSelectors.PopulateInnerSelectors() +305
CsQuery.Engine.PseudoSelectors..ctor() +168
CsQuery.Engine.PseudoSelectors..cctor() +44
[TypeInitializationException: The type initializer for 'CsQuery.Engine.PseudoSelectors' threw an exception.]
CsQuery.Engine.PseudoSelectors.get_Items() +0
CsQuery.Engine.SelectorParser.AddPseudoSelector(String key) +49
CsQuery.Engine.SelectorParser.Parse(String selector) +2360
CsQuery.Engine.Selector..ctor(String selector) +103
CsQuery.CQ.Select(String selector) +83
CsQuery.CQ.get_Item(String selector) +42