Fails in the following code: Apsim.Serialise(model)
It passes in the soil correctly but returns null. Only seems to happen with the soils, other nodes work ok.
It also works if the soil is a child of the node being copied, e.g. a field. Copying the soil on it's own however crashes.
Not sure if it's related, but I also can't paste a soil from Apsoil into the simulation either. Gives the error: InvalidOperationException There was an error reflecting type 'Models.Soils.Soil'.
Line 902 of Xml.cs: XmlSerializer serial = new XmlSerializer(type[0]);
Legacy Bug ID: 1964 Author: Justin Date: 2014-10-17 14:43:04 +0000 UTC
Fails in the following code: Apsim.Serialise(model)
It passes in the soil correctly but returns null. Only seems to happen with the soils, other nodes work ok.
It also works if the soil is a child of the node being copied, e.g. a field. Copying the soil on it's own however crashes.
Not sure if it's related, but I also can't paste a soil from Apsoil into the simulation either. Gives the error: InvalidOperationException There was an error reflecting type 'Models.Soils.Soil'.
Line 902 of Xml.cs: XmlSerializer serial = new XmlSerializer(type[0]);