Can i give unlimited length for maxJsonLength?

After</

system.web>

 

 

<

system.web.extensions>

<

scripting>

<

webServices>

<!--

Uncomment this line to customize maxJsonLength and add a custom converter -->

<

jsonSerialization maxJsonLength="50000000">

<!--

<converters>

<add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/>

</converters>

-->

</

jsonSerialization>

<!--

Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. -->

<!--

 

 

 

 

 

 

 

 

<authenticationService enabled="true" requireSSL = "true|false"/>

 

 

-->

<!--

 

Uncomment these lines to enable the profile service. To allow profile properties to be retrieved

and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and

writeAccessProperties attributes.

 

-->

<!--

<profileService enabled="true"

readAccessProperties="propertyname1,propertyname2"

writeAccessProperties="propertyname1,propertyname2" />

 

 

-->

</

 

webServices

>

<!--

<scriptResourceHandler enableCompression="true" enableCaching="true" />

 

 

-->

</

 

scripting

>

</

 

system.web.extensions

>

 

 

 

 

if, after implementing the above addition into your web.config, you get an “Unrecognized configuration section system.web.extensions.” error then try adding this to your web.config in the <ConfigSections> section:

 

 

 

 

 

 

 

 

 

 

 

 

<

 

sectionGroup name =" system.web.extensions" type =" System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

>

<

 

sectionGroup name =" scripting" type =" System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

>

<

 

section name =" scriptResourceHandler" type =" System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission =" false" allowDefinition =" MachineToApplication"

/>

<

 

sectionGroup name =" webServices" type =" System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

>

<

 

section name =" jsonSerialization" type =" System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission =" false" allowDefinition =" Everywhere"

/>

<

 

section name =" profileService" type =" System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission =" false" allowDefinition =" MachineToApplication"

/>

<

 

section name =" authenticationService" type =" System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission =" false" allowDefinition =" MachineToApplication"

/>

</

 

sectionGroup

>

</

 

sectionGroup

>

</

 

sectionGroup

>

 

 


 

 

 

你可能感兴趣的:(Ajax,properties,Authentication,asp.net,include,scripting)