logo
down
shadow

Reasons not to increase maxQueryStringLength?


Reasons not to increase maxQueryStringLength?

Content Index :

Reasons not to increase maxQueryStringLength?
Tag : asp.net-mvc , By : Deepak Poondi
Date : November 25 2020, 07:22 PM


Comments
No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

request exceeds the configured maxQueryStringLength when using [Authorize]


Tag : chash , By : user109285
Date : March 29 2020, 07:55 AM
wish helps you When an unauthorized request comes in, the entire request is URL encoded, and added as a query string to the request to the authorization form, so I can see where this may result in a problem given your situation.
According to MSDN, the correct element to modify to reset maxQueryStringLength in web.config is the element inside the element, see httpRuntime Element (ASP.NET Settings Schema). Try modifying that element.

Error The length of the query string for this request exceeds the configured maxQueryStringLength value


Tag : asp.net , By : Senthil
Date : March 29 2020, 07:55 AM
I hope this helps you . After fighting for one whole day i randomly found a solution I changed
 <form id="form1" method="GET" runat="server">    
<form id="form1"  runat="server"> <!--(this solved my problem.) -->

The length of the query string for this request exceeds the configured maxQueryStringLength value


Tag : chash , By : desmiserables
Date : March 29 2020, 07:55 AM
Does that help Why don't you use TempData, it's meant to do stuff like this. So for example:
TempData["ErrorMessage"] = "An error has occured during the communication to lightstone, this is likely a timeout issue and could be the result of a bad connection. Please go back and try again.";
TempData["Error"] = ex.Message();
TempData["ErrorMessage"] = "An error has occured during the communication to lightstone, this is likely a timeout issue and could be the result of a bad connection. Please go back and try again.";

return RedirectToAction("Error", "Error");
public ActionResult Error(string ex, string message)
{
    var error = (string)TempData["Error"];
    // do other magic ...
}

How to configure maxQueryStringLength in webapi?


Tag : chash , By : user116330
Date : March 29 2020, 07:55 AM
This might help you I wrote a method in webapi that get data by json format. This work currently but when I call this method by another parameters that length of query string is 2154 character get me error that : , I add this code into system.webServer section
<security>
  <requestFiltering>
    <requestLimits maxUrl="30000" maxQueryString="209007151" />
  </requestFiltering>
</security>
<httpRuntime maxUrlLength="10240" maxQueryStringLength="2097100"  targetFramework="4.5.2"/>

maxUrlLength maxQueryStringLength maxRequestPathLength


Tag : asp.net , By : hlpimfalling
Date : March 29 2020, 07:55 AM
Related Posts Related QUESTIONS :
  • Hosting WCF Services in ASP.NET MVC Web Application
  • How to create dynamic menu in asp.net mvc?
  • How do you link to an action that takes an array as a parameter (RedirectToAction and/or ActionLink)?
  • Asp.net mvc class reference in session
  • Unit testing a controller in ASP.NET MVC 2 with RedirectToAction
  • How to edit the user details stored in aspnetdb without asp.net web administration tool?
  • ASP .net MVC Jqgrid data binding
  • using two submit buttons inside single form
  • ASP.NET MVC not serving default document
  • ASP.NET MVC Programming
  • Vue + Asp.net rendering issue
  • Do we have to define url anywhere while querying from AZURE SEARCH index
  • How to exclude some action methods from returnUrl
  • Injecting Class into IModelBinder using Ninject
  • ASPNET Waiting for a Webhook Response/Result on a WebPage
  • Footer does not render correctly (Razor)
  • Using Service Worker - MVC view that uses fetched data when online
  • Syncfusion Treeview not rendering in ASP.Net MVC5
  • How to redirect all url which not related to controllers (Asp.Net MVC)
  • How to make ASP.NET Core MVC routes generation relative?
  • Make asp.net razor template without view or controller
  • how to disabled asp-action link after one click
  • IIS Application Pool Crashing for any .net application - NullReferenceException in PipelineModuleStepContainer
  • Can't create any view anymore, "The value -1 is outside the acceptable range of [0,2147483647]" error
  • How to normalize URL's in an Angular app to resolve correctly when the app is "self hosted" or "integrate
  • My website seems to not recognize some CSS values ( all "-ms" values)
  • Show DeveloperExceptionPage in production but for 'Remote Only"
  • What is the secret to getting tag helpers to work?
  • Maximum request length exceeded when uploading file to IIS 8
  • asp.net MVC “create view” and data
  • How to loop thru view model for particular value using foreach and where
  • How do I implement a "switch account" button/dialog for Azure SSO?
  • How to use if statment in View (@doc.value == "N/A" )
  • Creating a project in Visual Studio 2015 only shows a webpage
  • MVC Controller handle POSTed JSON as a string
  • How the data annotation attribute validation is differ from client side validation in MVC?
  • Cannot iterate through List<someclass> in view of an mvc application
  • Is it possible to get the domain of a user without Windows Authentication?
  • Controller level parameter with ASP.NET MVC attribute routing
  • Unit Test with Asp.Net Web Api and customer filter
  • Are Azure Active Directory's TenantID and ClientID considered secrets?
  • Getting null value of Property even when set default to empty string
  • How to bind HTML label to Model so that it displays data?
  • MVC Routing - wildcard URL, but constrained
  • Remote validation not working properly on IE?
  • Get local IP of a machine connected to a network in WEB API
  • Dropdown list in MVC view
  • Frequently refreshing web page during long-running process
  • How to get a list of sibling pages in Kentico
  • Ninject dependency injection: Read bindings from config?
  • ASP.NET MVC database connection using a form
  • IIS7.5 max-age issue(asp.net mvc output cache)
  • Why i can not send parameter to controller with ajax?
  • mvc linq controller view error
  • Creating Custom Authorization Attribute with MVC
  • How does the model binder figure out which user input to bind?
  • DecimalDynamicDisplayFormat constant expression error
  • Property injection upon initializing object manually
  • how to force partial view to render proper url
  • Identity can't connect to remote DB, keep connecting to local DB
  • shadow
    Privacy Policy - Terms - Contact Us © scrbit.com