Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
System.Web.HttpValueCollection.FillFromEncodedBytes (Byte [] bytes, Encoding encoding) +128
System.Web.HttpRequest. FillInFormCollection () +154

[HttpException (0x80004005): URL-encoded form data is invalid.]
System.Web.HttpRequest.FillInFormCollection () +213
System.Web.HttpRequest.get_Form () +50
System.Web.HttpRequest.get_HasForm () +8735447
System.Web.UI.Page.GetCollectionBasedOnMethod ()
System.Web.UI.Page.DeterminePostBackMode ()
System.Web.UI.Page.ProcessRequestMain ()
Posted
Comments
CRDave1988 8-Feb-12 4:29am    
which code is generating Exception. if possible show us that code.
nVnDev 8-Feb-12 5:19am    
Thanks for your response...
In fact i am not able to debug as i am getting this error when pressed on a button but the click event function is not reached before that the following exception occurs...

1 solution

 
Share this answer
 
v2
Comments
nVnDev 8-Feb-12 5:16am    
thanks for your response.. but it don't works as already i have given up to 10000
and also i am not getting this line in my error message
System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded()
but my message looks like this
[InvalidOperationException: Operation is not valid due to the current state of the object.]
System.Web.HttpValueCollection.FillFromEncodedBytes (Byte [] bytes, Encoding encoding) +128
System.Web.HttpRequest. FillInFormCollection () +154

[HttpException (0x80004005): URL-encoded form data is invalid.]
System.Web.HttpRequest.FillInFormCollection () +213
System.Web.HttpRequest.get_Form () +50
System.Web.HttpRequest.get_HasForm () +8735447
System.Web.UI.Page.GetCollectionBasedOnMethod ()
System.Web.UI.Page.DeterminePostBackMode ()
System.Web.UI.Page.ProcessRequestMain ()
Prerak Patel 8-Feb-12 11:07am    
The SO link above has the exact same error as you have, but anyways, you tried to set it and it didn't work! Let someone come with some different approach.
Member 2733050 22-Feb-13 12:34pm    
Hi..i am getting the same problem as yours. Did you find the solution to this problem ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900