Once every 2 months or so when my application starts up I get a XmlSerilization Exception on several files of the same type. There are other files of different types that are also deserialized but do not show this exception. It happens on several different machines.
using (FileStream fs = File.Open(fileName, FileMode.Open, FileAccess.Read))
{
XmlSerializer xs = new XmlSerializer(type);
instance = xs.Deserialize(fs);
fs.Close();
}
Any help would be appreciated.