This project is read-only.

No parameterless constructor defined for this object.

Apr 16, 2014 at 9:01 PM
I am trying to serialize list of objects derived from UserControl. I am able to serialize it but am getting "No parameterless constructor defined for this object" when i try to deserialize.

Here is the link to serialized xml

I want to know which type is responsible for this and can i exclude it?
Apr 22, 2014 at 3:51 PM
Edited Apr 22, 2014 at 3:54 PM
You need a parameterless constructor so it can do new Foo(). The deserializer cannot do constructor injection because it has no knowledge of what put into parameters other than guessing which is haphazard at best.

It appears you might be able to tell sharpSerializer how to deal with the constructors: