Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.
I have amended <jsonSerialization maxJsonLength="2147483647" /> in web.config but it doesn't have any effect. It appears that this line does not actually work.
Any ideas how I can fix this? Or manually clear out some older items?
I'm not sure why adjusting that setting didn't fix the issue, however there is a way to manually delete the nodes from the recycle bin via the database. This is not supported though, so make sure to backup your database before attempting.
So is this for the content recycle bin or media recycle bin? It's the media recycle bin I need to empty. Also, will it delete the actual files as well?
Ah, sorry - this is for the Content recycle bin. But to make it work for media, just change the references to "-20" (ID of the Content Recycle Bin) to "-21" (ID of the Media Recycle Bin).
This won't delete the actual files unfortunately. You would probably need to script this somehow.
On a side note, wondering if you are able to manually delete items from the Recycle Bin one by one instead of emptying the whole thing? Not ideal but just curious if that works :)
Can't access media recycle bin JSON error
When trying to access the media recycle bin the request times out with an internal server error. Using Firebug I can see this is:
/umbraco/webservices/TreeDataService.ashx?rnd=7c9aacadd87448d0ab6baf64e0ec7808&id=-21&treeType=mediaRecycleBin&contextMenu=true&isDialog=false&rnd2=76.7
I have amended <jsonSerialization maxJsonLength="2147483647" /> in web.config but it doesn't have any effect. It appears that this line does not actually work.
Any ideas how I can fix this? Or manually clear out some older items?
Thank
Dan
Hi Dan
What version of Umbraco are you seeing this on? And do you have any idea how many nodes are in the recycle bin?
/Jan
Version is 4.7.2
I have no idea how many items are in the bin. Is there a way to find out?
If the path to the recycle bin is -21 then there are 6982 items in the UmbracoNode table with that path.
Anyone have any ideas about this? Or how I can just empty the recycle bin?
Hi Dan,
I'm not sure why adjusting that setting didn't fix the issue, however there is a way to manually delete the nodes from the recycle bin via the database. This is not supported though, so make sure to backup your database before attempting.
http://www.blogfodder.co.uk/2011/5/26/mass-delete-over-1k-nodes-from-recycle-bin-in-47
-Tom
So is this for the content recycle bin or media recycle bin? It's the media recycle bin I need to empty. Also, will it delete the actual files as well?
Ah, sorry - this is for the Content recycle bin. But to make it work for media, just change the references to "-20" (ID of the Content Recycle Bin) to "-21" (ID of the Media Recycle Bin).
This won't delete the actual files unfortunately. You would probably need to script this somehow.
On a side note, wondering if you are able to manually delete items from the Recycle Bin one by one instead of emptying the whole thing? Not ideal but just curious if that works :)
is working on a reply...