I created a usercontrol in vb.net winforms that has a Dictionary as property. I am getting the following error message:
Error 1 Invalid Resx file. Could not load type System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[MIDAS.CheckedComboBoxItem, MIDAS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 which is used in the .RESX file. Ensure that the necessary references have been added to your project. Line 135, position 5. C:\Users\desig.nizam\documents\visual studio 2010\Projects\MIDAS\MIDAS\FGEO\FGEO.resx 135 5 MIDAS
I am using this control in some forms successfully, but not in the new ones. If I delete the controls of the forms I can compile without error.
I googled a solution and could find a lot of related topic, but none of them helped me to solve my case.