ImageVault

Vote:
 

We have a .net 3.5, episerver 6 application with ImageVault 3.5.

When trying to fetch "Uploaded files" the user gets the following error:
"error during serialization or deserialization using the JSON JavaScriptSerializer".

The error occurs because the JSON string gets to long due to large amount of data.
Is there a fix for this issue or do we have to manually configurate our whole application to support longer JSON strings.

In .net >= 4 support for longer JSON strings can be cofigured easy within the web.config, but we cannot find a corresponding configuration for .net 3.5.

If anyone has any idés of how to manually configure support for longer JSON strings in a .net 3.5 application or if theres any other fixes for this issue we would be greatefull.

The  key="aspnet:MaxJsonDeserializerMembers" value="2147483647" /> config does not work for us.

#118174
Mar 02, 2015 9:10
Vote:
 

Hi,

have you tried setting the maxJsonLength attribute in web.config?

/configuration/system.web.extensions/scripting/webServices/jsonSerialization/@maxJsonLength

See the following links

http://stackoverflow.com/questions/18223385/changing-maxjsonlength-property-in-web-config-has-no-effec

https://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.maxjsonlength(v=vs.90).aspx

#118623
Mar 11, 2015 9:28
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.