technomark.in
Hot News

$(this) Selector And Children / Find In jQuery

Detect An Undefined Object Property In JavaScript

Rotate And Save Video Using VLC Media Player

Capitalize The First Letter Of String In JavaScript

Convert Any Files To Any Format Using VLC Media Player

Asp.Net AngularJS WCF IIS
DataBase Jquery Bikes Random
HomeContact Us Watch Our YouTube Channel ..........Blog Spot..........

Technomark.in

How To Logout From All Devices In Skype

Technomark.in

How To Embed Google Map In Your Code

Technomark.in

How To Install IIS (Internet Information Services) On Windows

Technomark.in

Enable Directory Browsing In IIS

View All


How To Set An Unlimited Length For MaxJsonLength In Web.Config


What is this Issue?..

How To Set An Unlimited Length For MaxJsonLength In Web.Config, The Length Of The String Exceeds The Value Set On The MaxJsonLength Property, Error During Serialization Or Deserialization Using The JSON JavaScriptSerializer, InvalidOperationException, JsonSerialization, MaxJsonLength, Int32.MaxValue, JsonResult, 2147483644

> We may face this issue, when we use webservice for retrieving huge amount of data.
> Especially when the output is JsonResult.
> Lets start with a simple example.

How To Set An Unlimited Length For MaxJsonLength In Web.Config, The Length Of The String Exceeds The Value Set On The MaxJsonLength Property, Error During Serialization Or Deserialization Using The JSON JavaScriptSerializer, InvalidOperationException, JsonSerialization, MaxJsonLength, Int32.MaxValue, JsonResult, 2147483644

How To Set An Unlimited Length For MaxJsonLength In Web.Config, The Length Of The String Exceeds The Value Set On The MaxJsonLength Property, Error During Serialization Or Deserialization Using The JSON JavaScriptSerializer, InvalidOperationException, JsonSerialization, MaxJsonLength, Int32.MaxValue, JsonResult, 2147483644

> In the given example, we are using Jquery ajax call for getting data from server.
> Here we are trying to get the list of string of size 16000.
> Normally, we would definitely get the the error.

What is the reason of this Issue?...

> There is a limit for transferring data using Webservices.
> If that limit exceeds, we will get this error.
> In order to Resolve this issue, we have to increase the limit to its maximum.

How to Resolve this Issue?...

How To Set An Unlimited Length For MaxJsonLength In Web.Config, The Length Of The String Exceeds The Value Set On The MaxJsonLength Property, Error During Serialization Or Deserialization Using The JSON JavaScriptSerializer, InvalidOperationException, JsonSerialization, MaxJsonLength, Int32.MaxValue, JsonResult, 2147483644

> On the web.config file, we have to increase the maxJsonLength of jsonSerialization property.
> The Maximum value is 2147483644 (Int32.MaxValue).
> By this way, we can resolve this issue.

Watch Video of this Content on Video Streaming

Post Your Comment

Name *


Email *


Comment * Please provide all three fields for posting Comment




Comments

salini:
if  the  maximum  length exceeds 2147483647,then what we can  do?

Technomark.in

Book Train Tickets on IRCTC Quickly During Tatkal Period

Technomark.in

Before You Copy Any Image From Internet

View All

Privacy StatementDisclaimerSitemap