Luke Smith Write today, wrong tomorrow

Debugging XmlSerializer unhelpful exceptions

I've been getting the following error when trying to serialize an object in .NET

File or assembly name zc1diojb.dll, or one of its dependencies, was not found.

There is bugger all help given in the exception stack to help debug this problem,
but I stumbled upon XmlSerializerPreCompiler by
Chris Sell's designed to help with these kinds of exceptions. It allowed me to track
down the problem in a matter of seconds, it turns out I had a few properties marked
with the ObsoleteAttribute.
Adding an XmlIgnoreAttribute to
each of these properties resolved the issue.

>

comments powered by Disqus