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.

>

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.