title: The element 'value' cannot contain child element 'object' because the parent element's content model is text only
body: <p>I have a property of <code>IDictionary</code> type with key type and value type other than string. Most of the examples given on the internet and in Spring.Net uses string as one of the types.</p>
  
  <p>Here are the config settings:</p>
  
  
  
  <pre class="lang-xml prettyprint-override"><code>&lt;property name="DirectoryServiceAgents"&gt;
    &lt;dictionary key-type="OM.ServiceTier.DTO.Transients.AuthenticationDomainIdentifier, OM.ServiceTier" value-type="OM.ServiceTier.Services.User.Internal.IDirectoryServiceAgent, OM.ServiceTier"&gt;        
      &lt;entry&gt;
        &lt;key&gt;
          &lt;object type="OM.ServiceTier.DTO.Transients.AuthenticationDomainIdentifier, OM.ServiceTier"&gt;
            &lt;constructor-arg type="string" value="${activeDirectory.Domain}"/&gt;
          &lt;/object&gt;
        &lt;/key&gt;
        &lt;value&gt;
          &lt;object type="OM.ServiceTier.Services.User.Internal.DirectoryServiceAgent, OM.ServiceTier"&gt;
            &lt;property name="LDAPPath" value="${activeDirectory.LDAPPath}"/&gt;
            &lt;property name="LDAPContainer" value="${activeDirectory.LDAPContainer}"/&gt;
            &lt;property name="UserName" value="${activeDirectory.UserName}"/&gt;
            &lt;property name="Password" value="${activeDirectory.Password}"/&gt;
          &lt;/object&gt;
        &lt;/value&gt;
      &lt;/entry&gt;
    &lt;/dictionary&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>I am getting the following <code>ConfigurationErrorException</code>:</p>
  
  <p><strong>Error creating context 'spring.root': The element 'http://www.springframework.net:value' cannot contain child element 'http://www.springframework.net:object' because the parent element's content model is text only.</strong></p>
  
  <p>Is there something wrong in my config?</p>