Offroadcode / Umbraco-Bulk-Edit

An Umbraco package for the bulk editing and reporting of content.
http://www.offroadcode.com/packages
MIT License
5 stars 0 forks source link

Unable to Serialize XPathValue with JSON Serializer. #17

Closed cssquirrel closed 7 years ago

cssquirrel commented 7 years ago

@steroberts89 I'm encountering an error when testing the UmbracoBulkEdit package on the Chips Away website (on localhost) to confirm its working as intended.

When calling GetPublishedContent() for all frachisees under Home, I the error that says the JSON serializer is unable to serialize the xpathvalue. I'm having issues connecting the process to my Visual Studio debug on this project, so it's been difficult for me to debug, so I'm unsure exactly what part of the serialization is in error. What I need to solve this is a way for us to process content like this with the JSON resolver, as near as I can tell.

Pete's asked me to stop trying to solve it on my end as I'm more or less stumped. Can you help so we can get this released?

Thanks!

cssquirrel commented 7 years ago

I've gone through this a good half-dozen times, read the JSON.Net serializer docs, ran through related questions on stack overflow, and I'm still missing something here. Could really use @steroberts89's help on this one.

naepalm commented 7 years ago

This was "fixed" by limiting the options for allowed fields to specific types in these commits: