I would like to store some data from a list<.string> in a Settings.StringCollection (System.Collections.Specialized.StringCollection), but everytime I try to add the data to the collection, I get an Exception for this code:
Settings.Default.fav01.Add(favArray[i]);
Error:
NullReference Exception was unhandled
Object reference not set to an instance of an object.
So, how do I fix this (or set that mentioned reference)?