I'm using System.Configuration in .NET 2.0 to load in values from an externally specified config file and deserialize them into a C# class. During deserialization, I'm getting an exception thrown by .NET It's having a problem with the element seen below. I've tried different things, but still I can't get the deserialize to succeed. Here's the problem in detail below. Can anybody tell me what I'm doing wrong? Shouldn't [xmlArray] work? Thx, Tom The app.config file looks like this:
DataAccess.config looks like this: The C# class looks like this: using System; using System.Xml.Serialization; using System.Configuration; namespace Framework.Data { /// /// Represents the root of all data access configuration information. /// public class DataAccessConfig : ConfigurationSection { #region Constructor(s) /// /// Initializes a new instance of the class. /// public DataAccessConfig() { _sectionName = _defaultSectionName; } #endregion #region Config Manager private const string _defaultSectionName = "dataAccessSection"; private string _sectionName; #region Connection Config private ConnectionConfigCollection _connections = new ConnectionConfigCollection(); /// /// Gets or sets the collection of connection configuration items associated with this application. /// /// The collection of connection configuration items associated with this application. [XmlArray("connections")] [XmlArrayItem("c