Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

URL-encoded form data is not valid

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.

like image 321
Paul Kogan Avatar asked Jan 11 '12 17:01

Paul Kogan


2 Answers

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" />
like image 103
Greg Lary Avatar answered Nov 19 '22 14:11

Greg Lary


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

like image 15
1234 Avatar answered Nov 19 '22 15:11

1234