Standard.Licensing
Standard.Licensing copied to clipboard
System.Xml.XmlException: 'Data at the root level is invalid. Line 1, position 1.'
anyone knows how to fix this issue please? im triying the default license generator from the guide, but im getting this in my app.
The load function seems to want the XML string rather than the file path, its not very clear in the docs. See code below;
using System.IO;
string xml = File.ReadAllText("License.lic");
var license = License.Load(xml);
That should work.