I am trying to save List to settings using the following code.
I have other controls bound to settings and they work fine, if I comment the first three lines then it seems to work OK, but otherwise I get exception on the save() method
StringCollection playLists = new StringCollection();
playLists.AddRange(getListsToSync().ToArray());
Properties.Settings.Default.PlayLists = playLists;
Properties.Settings.Default.Save(); //exception here..
I get this exception
Could not load file or assembly ‘System.XmlSerializers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ or one of its dependencies. The system cannot find the file specified.
Accodring to this link you can just ignore the exception and your code should run fine.
From the link: