I am serializing a class and I get the following exception:
You must implement a default accessor on System.Configuration.SettingsPropertyCollection b
you have to have a default constructor, that is, one that does not take any parameters, like so....
class foo
{
public foo() {}
}
if the class you are trying to serialize does not have one, XMLSerializer throws that exception. If you are trying to serialize a built-in class, you are going to have to derive your own or create a wrapper class.