diff --git a/SparkleLib/SparkleConfig.cs b/SparkleLib/SparkleConfig.cs index bbf0bc37..0549e9a7 100644 --- a/SparkleLib/SparkleConfig.cs +++ b/SparkleLib/SparkleConfig.cs @@ -67,7 +67,10 @@ namespace SparkleLib { try { Load (FullPath); - } catch (FileNotFoundException) { + } catch (TypeInitializationException) { + CreateInitialConfig (); + + } catch (FileException) { CreateInitialConfig (); } catch (XmlException) { @@ -79,7 +82,7 @@ namespace SparkleLib { CreateInitialConfig (); } else { - throw new XmlException (FullPath + " does not contain a valid SparkleShare XML tree."); + throw new XmlException (FullPath + " does not contain a valid SparkleShare XML structure."); } } finally {