-
I have attempted to update to version 9.0.1 from version 8.4.2 and and encountered the following error - JsonSerializationException: Could not find type 'Piranha.Models.RegionType' in assembly 'Piranha, Version=9.0.1.0, Culture=neutral, PublicKeyToken=null' Newtonsoft.Json.JsonSerializationException: 'Error resolving type specified in JSON 'System.Collections.Generic.List`1[[Piranha.Models.RegionType, Piranha]], System.Private.CoreLib'. Path '$values[0].Regions.$type', line 1, position 676.' Is this a .NET 5 serializing issue with NewtonSoft vs System.Text.Json serializer perhaps?...has anyone else experienced this issue upgrading from 8x to 9x? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Ok so on further investigation is appears that the class RegionType has been dropped from piranha.model in v9 [Serializable] So i expect my v8.4.2 project has some old reference to this class after upgrading to v9.0.1 I will update once i know more, to help anyone else experiencing this issue. |
Beta Was this translation helpful? Give feedback.
-
I have not been able to identify any old references to version 8x in respect to Piranha.Models.RegionType so currently at a bit of a loss as to how to proceed with this error. Can anyone help with this upgrade issue i am experiencing? |
Beta Was this translation helpful? Give feedback.
-
This issue was as a result of a cached object once removed the error was cleared, additional issue was the need to alter the way Piranha is setup in the Startup.cs for version 9x - refer to this documentation for help https://piranhacms.org/docs/master/basics/application-setup |
Beta Was this translation helpful? Give feedback.
This issue was as a result of a cached object once removed the error was cleared, additional issue was the need to alter the way Piranha is setup in the Startup.cs for version 9x - refer to this documentation for help
https://piranhacms.org/docs/master/basics/application-setup
https://piranhacms.org/docs/master/basics/startup-options