I get a BindingFailure on a line of code using the XmlSerializer:
XmlSerializer s = new XmlSerializer(typeof(CustomXMLSerializeObject));
Use the following method to construct your xmlSerializer instance will fix the problem:
XmlSerializer s = XmlSerializer.FromTypes(new[] { typeof(CustomXMLSerializeObject) })[0];
then, you don't need to turn off the exception handlings.