mirror of
https://github.com/junian/Standard.Licensing.git
synced 2026-04-25 05:45:51 +03:00
[GH-ISSUE #19] System.Xml.XmlException: 'Data at the root level is invalid. Line 1, position 1.' #16
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Standard.Licensing#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alejo9010 on GitHub (Sep 14, 2021).
Original GitHub issue: https://github.com/junian/Standard.Licensing/issues/19
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 commented on GitHub (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.