Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
555
Operation is not valid due to the current state of the object
posted

I have a page that uses a datatree working fine, by an unknown reason, the page begins to show this error message "Operation is not valid due to the current state of the object" and the stack points to webhierarchicaldatasource of the webdatatree, how can I fix this problem?, I have searched info on the web and it points to the MaxHttpCollectionKey, I added a section in my webconfig to add the value of 2000 to the http collection keys but it do not work

  • 555
    Verified Answer
    posted

    I have found the solution, is a modification to the webconfig, the problem is caused by a security update that limits the number of elements of some controls, this is the modification, I have found it in the infragistics forums related to the dropdownlist control

      <appSettings>
        <add key="aspnet:MaxHttpCollectionKeys" value="5000" />
        <add key="aspnet:MaxJsonDeserializerMembers" value="5000" />
      </appSettings>