Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7184777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:16:16+00:00 2026-05-28T18:16:16+00:00

This week, several of our .NET (C#) web applications have been thowing the error

  • 0

This week, several of our .NET (C#) web applications have been thowing the error “Operation is not valid due to the current state of the object“.

They are all web apps and share the same front-end and database servers although they all query separate databases.

I’ve never seen this error before, so when it appeared in three seemingly unrelated apps I thought something must be up.

My question is not so much as to what the error means, but whether anyone knows of a possible change to the server which could introduce a condition where this is more likely to happen?

I know the front-end server was restarted recently so a config setting could have been changed there but the database server has been up all the time.

Looking at a stack trace, one app mentions ThrowIfMaxHttpCollectionKeysExceeded() but there has been no increase or indeed any change to any of the apps’ code-behind which could trigger such an error.

What could have changed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T18:16:17+00:00Added an answer on May 28, 2026 at 6:16 pm

    Have you applied any security updates lately?

    Microsoft recently patched several security holes: Microsoft Security Bulletin MS11-100.

    One potential side-effect of the fix is that HTTP submissions with lots of elements — for example, forms with lots of fields — will cause an InvalidOperationException to be thrown from ThrowIfMaxHttpCollectionKeysExceeded.

    If your application legitimately needs to submit many elements then you can edit your web.config to raise the limit:

    <appSettings>
        <add key="aspnet:MaxHttpCollectionKeys" value="2000" />
    </appSettings>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have this recurring situation where several times a week our application stops responding.
We have been having some debate this week at my company as to how
I have been a VB6 developer for several years, and switched to .NET couple
This week I have figured out how to modify form elements in the location
A situation I ran across this week: we have a jQuery Ajax call that
I've been searching the web for a way to do this for about a
I've been spending the past several weeks working on my asp.net mvc site following
I'm new to WinDbg and have started using it this week to diagnose memory
We had a very strange issue on our servers this week, where a method
We have been working on a project for several months without any problems until

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.