Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello guys!
I have PCL aplication, I need send JSON string, but the JSON is very extensive, which gives me the following error: Request URL Too Long/HTTP Error 414. The request URL is too long.
I have my web.config well structured with this configuration:

<httpruntime maxurllength="2097151" maxquerystringlength="2097151">

<bindings>
<webhttpbinding>
<binding maxreceivedmessagesize="2147483647" maxbuffersize="2147483647" transfermode="Streamed">



<security>
<requestfiltering>
<requestlimits maxallowedcontentlength="30000000" maxurl="999999999" maxquerystring="999999999">



<webservices>
<jsonserialization maxjsonlength="50000000">


And my IIS is well configuration.

What I have tried:

Add the above configurations, in addition to configuring the IIS as indicated
Posted
Comments
j snooze 1-Dec-16 17:35pm    
not sure how you are calling the url, but can you post the json vs trying to put it in the URL?
See this article:
http://stackoverflow.com/questions/6955302/http-error-414-the-request-url-is-too-long
Arnold Ulate Segura 2-Dec-16 16:05pm    
Thanks dude!
You do not know how you could send the JSON without adding it to the URL.
Arnold Ulate Segura 2-Dec-16 16:07pm    
My project is en Xamarin.Forms (PCL).
I use HttpClient with GetStringAsync()
j snooze 2-Dec-16 17:16pm    
I'm saying if you have too much json you can't send it in the URL as a query string parameter. There are limits to that. By posting the json (similar to posting a webform and all its data to another webform) you can get around this limitation.

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