We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

SetLicense Object reference not set to an instance of an object

We are using Aspose.Words for .NET

Message: Source: Aspose.Words Message Object reference not set to an instance of an object.

We are getting this error message intermittently

Code:

Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense("Aspose.Words.lic"); <--------------------------- breaking here
Aspose.Words.Document docRet = null;

Thanks,

Hi Willie,


Thanks for your inquiry. What version of Aspose.Words are you getting this exception with? Secondly, please create a standalone (runnable) console application that helps us reproduce your problem on our end and attach it here for testing.

Best regards,