© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•11mo ago
Rafael Vargas

Error during serialization or deserialization using the JSON JavaScriptSerializer

I'm facing a problem on asp.ne framework application:
On sending a form to action I receive a complex type that is automatic deserialized by JavaScriptDeserializer.Deserealize(), but even without entering inside the action is throwing an error on:

"[ArgumentException: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.
Parameter name: input]
System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) +280"

I already setted all possible configs on web.config, but it seeams is being ignored by iisexpress:



Can somebody help me?
image.png
partial-webconfig.rtf1.94KB
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Serialization/Deserialization
C#CC# / help
2y ago
Serialization and Deserialization Issues
C#CC# / help
3y ago
✅ [SOLVED] app hangs during JSON serialization
C#CC# / help
10mo ago
✅ NodaTime JSON Serialization
C#CC# / help
2y ago