Cause
This error occurs if the collection is not empty when your application attempts to perform an operation (for example, changing properties such as the membership or key definitions of a dynamic dictionary) that requires the collection to be empty.
Action
Ensure that the collection is empty before attempting this operation.