URL-encoded form data is not valid

asp.netUrlEncoding

asp.net Problem Overview


I have a webpage that posts multiple form tags. It's an inline edit page, where I can either post one row at a time or multiple rows. Last night, without making any changes to the code or data, I started getting The URL-encoded form data is not valid error on multiple posts, although single row posts work fine.

asp.net Solutions


Solution 1 - asp.net

The MS KB issue in question is: <http://weblogs.asp.net/scottgu/archive/2011/12/28/asp-net-security-update-shipping-thursday-dec-29th.aspx>

In a nutshell there is now an upper bound on the number of simultaneous HTTP form elements that may be posted. The default is now 1000 without explicitly changing it with this key in the <appSettings> portion of the web.config:

<add key="aspnet:MaxHttpCollectionKeys" value="some number greater than 1000" />

Solution 2 - asp.net

There was a microsoft update and it may have caused your issue see link. http://knowledgebase.solarwinds.com/kb/questions/3476/Website+Error%3A+The+URL-encoded+form+data+is+not+valid

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionPaul KoganView Question on Stackoverflow
Solution 1 - asp.netGreg LaryView Answer on Stackoverflow
Solution 2 - asp.net1234View Answer on Stackoverflow