Gavin Stevens's Blog

the ramblings of another developer....

  Home  |   Contact  |   Syndication    |   Login
  34 Posts | 0 Stories | 57 Comments | 212 Trackbacks

News

Archives

Post Categories

July 2007 Entries

I recently had a strange problem with XMLSerialization throwing the error: There was an error creating the XML Document. Unable to cast type Configuration to type Configuration Here was the simple configuration class: Serializable]public class Configuration { public bool Active; public string lastPSM = ""; } and the Save method: public { XmlSerializer serial = new XmlSerializer(typeof(Config... TextWriter writer = new StringWriter(); serial.Serialize(writer, config); Console.WriteLine(writer.To... ......

Maybe I need to re-subscribe to MSDN magazine or something, it seems there are soooo many things you can learn about programming, there is never enough time.. If you spend all your time programming, you never have time to learn about new stuff. And even if you learn a ton, things seem to slip by... It seems everything most of us developers know is because we had to do something at sometime in the past and had to find a way to do it. If the ways and means we do things are the correct way, who knows.. ......