Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alejo9010 opened this issue Sep 14, 2021 · 1 comment

Comments

@alejo9010
Copy link

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

@itsjoshsmith
Copy link

itsjoshsmith commented Oct 6, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants