title: XamlParseException when deserializing xml file
body: <p>I wouldnt ask but i have no idea whats wrong again. Iv saved vehicles to an xml file and when the user opens the program i want to deserialize.when i run it i get this on the final line in the load method </p>
  
  <pre><code>   'System.Windows.Markup.XamlParseException' {"'The invocation of the constructor on type 'SD2CW2.MainWindow' that matches the specified binding constraints threw an exception.'} 
  </code></pre>
  
  <p>these are my load/save methods</p>
  
  <pre><code>    private void Load()
      {
  
          XmlSerializer SerializerObj = new XmlSerializer(typeof(Vechicle));
  
          // Reading a file requires a FileStream.
          FileStream fs = new FileStream(filepath);
          Vechicle = ((List&lt;Vechicle&gt;)SerializerObj.Deserialize(fs));
      }
      //Save the objects
      private void Save()
      {
          // Create a new file stream to write the serialized object to a file
          TextWriter WriteFileStream = new StreamWriter(filepath);
  
          Type [] extraTypes= new Type[2];
          extraTypes[0] = typeof(Tour);
          extraTypes[1] = typeof(Vechicle);
          // Create a new XmlSerializer instance with the type of List&lt;Journey&gt; and my addition types
          XmlSerializer SerializerObj = new XmlSerializer(typeof(List&lt;Journey&gt;),extraTypes);
  
          //serialising my journey list
          SerializerObj.Serialize(WriteFileStream,Journey);
          SerializerObj = new XmlSerializer(typeof(List&lt;Vechicle&gt;));
          //serialising my vechicle list
          SerializerObj.Serialize(WriteFileStream, Vechicle);
          // Cleanup
          WriteFileStream.Close();
      }
  </code></pre>
  
  <p>this xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ArrayOfJourney xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /&gt;&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ArrayOfVechicle xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;Vechicle&gt;
      &lt;Id&gt;1&lt;/Id&gt;
      &lt;Registration&gt;1&lt;/Registration&gt;
    &lt;/Vechicle&gt;
    &lt;Vechicle&gt;
      &lt;Id&gt;2&lt;/Id&gt;
      &lt;Registration&gt;2&lt;/Registration&gt;
    &lt;/Vechicle&gt;
    &lt;Vechicle&gt;
  &lt;Id&gt;3&lt;/Id&gt;
  &lt;Registration&gt;3&lt;/Registration&gt;
  </code></pre>
  
  <p>
  </p>