Json Maximum Length Problem With Asp.net
I am creating a asp.net 2.0 webservice which give json as output and there's a very large, can't be break down, dataset which exceed the max length limit I have search on the inter
Solution 1:
I had this same exact problem. Was getting frustrated seeing 3.5 and 4.0 solutions. Turns out you do the same thing, you just have to add a couple lines to the <ConfigSections>
tag in your Web.config. It should be the first element under the root when you paste it in.
<configSections><sectionGroupname="system.web.extensions"type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"><sectionGroupname="scripting"type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"><sectionGroupname="webServices"type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"><sectionname="jsonSerialization"type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"requirePermission="false"/></sectionGroup></sectionGroup></sectionGroup></configSections>
and then add in the actual <system.web.extensions>
section:
<system.web.extensions><scripting><webServices><jsonSerializationmaxJsonLength="50000000"/></webServices></scripting></system.web.extensions>
Post a Comment for "Json Maximum Length Problem With Asp.net"