I've taken my XSD and generated classes from it using liquid's tool. I then split all of the classes out into individual files. When I attempt to serialize the main class, I get the following error
InvalidOperationException: System.Xml.Linq.XAttribute cannot be serialized because it does not have a parameterless constructor.
I've removed/commented out all of the attributes for the main class (it does extend another class which I've kept untouched for the moment) it still generates the same error.
The line of code generating the error is:
XmlSerializer serializer = new XmlSerializer(typeof(SpaceSystemTypeCtDTO));
Any thoughts, suggestions, ideas?