// For complete examples and data files, please go to https://github.com/groupdocs-text/GroupDocs.Text-for-.NET try { License lic = new License(); lic.SetLicense(licensePath); } catch (Exception ex) { Console.WriteLine(ex); }