You are setting the license key after creating a DocumentModel object or after rendering a document.
ComponentInfo.SetLicense((string)ConfigurationManager.AppSettings["GemBox.Document.LicenseKey"]); Gembox.document License Key
While obtaining and using a Gembox.Document license key is generally straightforward, some common issues may arise: You are setting the license key after creating