Click here to Skip to main content
13,054,329 members (120,202 online)
Rate this:
Please Sign up or sign in to vote.
Hi I have an 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
ryanb31 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
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[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 20 Feb 2012
Copyright © CodeProject, 1999-2017
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