2011-11-13, 09:48 PM
So have a weird code problem with c# serialisation.
I have a windows form project using a bunch of classes that deserialise an XML feed. Works perfectly.
If I share. or copy the code files used for the deserialisation (there's a bunch of classes) into a project that is a plugin, then on the very first deseralisation I get a failure in the xml at 0,0 - with the inner exception getting an object reference not found.
The URL location of the xml is the same for both projects. Even saving the XML to disk in the windows form and opening that in the plugin gets the same problem....but saving the XML in the plugin and opening it in the windows form works.
Really stuck. The only possible thing I can think of may be that the Plugin is targeting dotnet 3.5.
Any other suggestions?
I have a windows form project using a bunch of classes that deserialise an XML feed. Works perfectly.
If I share. or copy the code files used for the deserialisation (there's a bunch of classes) into a project that is a plugin, then on the very first deseralisation I get a failure in the xml at 0,0 - with the inner exception getting an object reference not found.
The URL location of the xml is the same for both projects. Even saving the XML to disk in the windows form and opening that in the plugin gets the same problem....but saving the XML in the plugin and opening it in the windows form works.
Really stuck. The only possible thing I can think of may be that the Plugin is targeting dotnet 3.5.
Any other suggestions?