From: Peter Duniho on
saurabh srivastava wrote:
> [...]
> but when I serializing the object it is giving the exception.
>
> ****** XmlSerializer ser = new
> XmlSerializer(configSection.GetType());-->this line throwing the
> exception
>
> "You must implement a default accessor on
> System.Configuration.ConfigurationLockCollection because it inherits
> from ICollection."
>
> Any Solution ***

The error message seems pretty clear to me. Implement a default accessor.

Pete