Configs don't always work across multiple machines
Customized autorun for trusted flash drives
Brought to you by:
joincamp
Issue:
when using ignitionkey on multiple machines, it may not recognize the drive as authorized when you last saved it on another machine, even though changes were not made.
Root cause:
When serializing the config object, XmlSerializer adds the following namespaces to the root element. xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
they are not guaranteed to be written in the same order so the hash of the file is changed, and thus a valid configuration is no longer considered authorized.
http://www.diaryofaninja.com/blog/2011/07/19/xmlserializer--removing-namespace-amp-schema-declarations-xmlnsxsi-xmlxsd gives a solution that I have implemented, but it is recommended against by http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializernamespaces.aspx
I'm researching to see if this is a bad idea to use.