Object writer: xClassNotDerivedFromElement
If you get this non-descriptive error it may throw you (as it did me). The error was caused by a resources file containing styles that pointed to a namespace that didn’t exist in my project. I simply removed the x:Class attribute which cleared the error. I could of also resolved this by modifying the namespace within the resources file to match that of my current project.
