title: Operation is not valid due to the current state of the object in asp.net 1.1
body: <p>I am using aspnet framework 1.1 and i am getting error </p>
  
  <pre><code>Operation is not valid due to the current state of the object.
  </code></pre>
  
  <p>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.</p>
  
  <p>Exception Details: System.InvalidOperationException: Operation is not valid due to the current state of the object.</p>
  
  <p>Source Error:</p>
  
  <p>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</p>
  
  <p>Stack Trace:</p>
  
  <pre><code>[InvalidOperationException: Operation is not valid due to the current state of the object.]
  System.Web.HttpValueCollection.FillFromEncodedBytes(Byte[] bytes, Encoding encoding) +126
  System.Web.HttpRequest.FillInFormCollection() +154
  
  [HttpException (0x80004005): The URL-encoded form data is not valid.]
  System.Web.HttpRequest.FillInFormCollection() +213
  System.Web.HttpRequest.get_Form() +50
  System.Web.UI.Page.GetCollectionBasedOnMethod() +70
  System.Web.UI.Page.DeterminePostBackMode() +128
  System.Web.UI.Page.ProcessRequestMain() +63
  </code></pre>
  
  <p>Version Information: Microsoft .NET Framework Version:1.1.4322.2490; ASP.NET Version:1.1.4322.2494  </p>
  
  <hr>
  
  <p>I tried adding </p>
  
  <pre><code>&lt;add key="aspnet:MaxHttpCollectionKeys" value="10000" /&gt;
  </code></pre>
  
  <p>But its still throwing the same error.</p>
  
  <p>Can anyone suggest me any workaround for this?</p>
  
  <p>Regards,
  Murthy</p>