Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hi I have an asp.net mvc 3 project implementation where by I post a serialized object to an actionresult as a string. Using the @Ajax.ActionLink helper method in my view. However i receive the following error and it's unable to continue with my request.
The error is as follows. "Error 414 Request URL is too long." How would I go about fixing this? What is the correct way to increase the Request url length in web.config or IIS7.0 or what would be a better way to serialize an object to my ActionResult method?
Posted 17-Feb-12 4:06am
Comments
ryanb31 at 17-Feb-12 10:29am
   
I know browsers have limitations on the url length, so that may actually be where the error is coming from. You may have to change the way you are doing things.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

The query string length depends on browser. You cannot increase it from your code.
 
The only solution AFAIK is to find another alternative approach to achieve the functionality.
 
Depending upon various browsers here are the limits
 
IE5.0 IE6.0 IE7.0 -->1024 characters
Opera ---> 4050 characters
NetScape6 ---> 2000 characters
NetScape4 --> 30000 Characters
 
http://www.boutell.com/newfaq/misc/urllength.html[^]
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 598
1 OriginalGriff 280
2 George Jonsson 258
3 CPallini 190
4 Animesh Datta 130
0 OriginalGriff 5,985
1 Sergey Alexandrovich Kryukov 5,341
2 CPallini 4,760
3 George Jonsson 3,400
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 20 Feb 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100