I\'m refactoring my XML-serialization, and figured I\'d try the DataContractSerializer. Everything runs smoothly, until it needs to serialize this class:
Change this:
[DataContract(Name="Konstant")] public class Konstant : DataFelt
to this:
[DataContract(Name="Konstant")] [KnownTypes(typeof(somenamespace.DataFelt))] public class Konstant : DataFelt