Geeks With Blogs
Gavin Stevens's Blog the ramblings of another developer.... July 2007 Entries
XMLSerializer and Unable to cast type to type
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... ......

Posted On Tuesday, July 31, 2007 6:22 PM

.NET State Management, AppDomain, Thread Context
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.. ......

Posted On Friday, July 27, 2007 1:50 PM

Copyright © Gavin Stevens | Powered by: