Standard.Licensing icon indicating copy to clipboard operation
Standard.Licensing copied to clipboard

System.Xml.XmlException: 'Data at the root level is invalid. Line 1, position 1.'

Open alejo9010 opened this issue 3 years ago • 1 comments

anyone knows how to fix this issue please? im triying the default license generator from the guide, but im getting this in my app.

alejo9010 avatar Sep 14 '21 03:09 alejo9010

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.

itsjoshsmith avatar Oct 06 '21 13:10 itsjoshsmith