locked
Error is coming - Operation is not valid due to current state of object RRS feed

  • Question

  • User2044338732 posted

    I have gridview to show item list with apprx 2500 rows and 15 columns on my page. 

    I have used paging at this page.

    First time i fetch only 10 records and after that i click on Home link then it goes in right way.

    Next time i fetch 10 records after that i select all records to show. it shows all records in grid view after that i click on Home link then it gives error. This error states that "Operation is not valid due to current state of object"

    For solving this issue, i added a line in web.config to increase the value of MaxHTTPCollectionKeys. First time I set value to 2000 then this error comes again, next time i increased to 5000, it is resolved but after some time it gives login failure error each time. When i decrease value then login success but above error is coming again.

    What is the solution for this? Please give me any solution. Cry

    Thursday, May 24, 2012 3:55 AM

Answers