Root Element Missing from license

Hi,


I’ve seen this error on the forum a few times but the solution is very specific to the user.

We have a license for aspose words. We have just received our license. The version i am using is 14.1.0.0 (i got this from properties of the dll in vss2012).

I have the license as a resource which i use:
Object obj = QualityControl.Properties.Resources.ResourceManager.GetObject(“Aspose_Words_4”);
Stream license = new MemoryStream((byte[])obj);

and then pass the stream to another libary to produce the document. But

Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense(AsposeLicense);

Throws an exception. “Root element is missing.”. If i turn the byte[] to a string i can see the license details.

Hi Dominic,


Thanks for your inquiry. Please post your license file via mail to us. We will investigate the issue on our end and provide you more information. In order to post your license file to us please follow the instructions provided in the following link:

Best regards,