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

Free Support Forum - aspose.com

Error at Aspose.Words.License.SetLicense(String licenseName)

Hello,

We have a server that has IISReset scheduled each night. Sometimes, we have an error the first time since the iisreset Aspose.Words is called from a .NET class (CCDocumentos):

26/04/2010 7:26:10
Error en el constructor. No se pudo instanciar ASPOSE.
Error: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Collections.ArrayList.Add(Object value)
at Ֆ.௉.௬()
at Ֆ.௉.௙(Stream ם)
at Ֆ.௉.௙(String ௚, Assembly ௛)
at Aspose.Words.License.SetLicense(String licenseName)
at CCDocumentos.clsAWord..ctor()

And then:

26/04/2010 7:27:06
Error en el constructor. No se pudo instanciar ASPOSE.
Error: System.NullReferenceException: Object reference not set to an instance of an object.
at Ֆ.௉.௙(Stream ם)
at Ֆ.௉.௙(String ௚, Assembly ௛)
at Aspose.Words.License.SetLicense(String licenseName)
at CCDocumentos.clsAWord..ctor()

And we cant invoke CCDocumentos. We have to kill W3WP.exe and then ASPOSE.Words works without problem.

Hello

Thanks for your request. The problem might occur because you are applying the license multiple times in multiple threads. Please try applying license as described here:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/when-to-apply-a-license.html

Best regards,