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

Free Support Forum - aspose.com

Exception "System.NullReferenceException: Object reference not set to an instance of an object." while setting license file


We are currently using Aspose.Pdf for .NET 9.3.0 in our live application. We have been using aspose.pdf dll since long time and it was working fine.

Suddenly, application started throwing exception and stop processing any document. We have investigated the license file and it was good. When we have restarted the IIS service, it automatically back to normal. Could please investigate and let me know the reason of this error message and how to resolve this issue.

System.NullReferenceException: Object reference not set to an instance of an object.
at ?..?(Stream )
at ?..?(String , Assembly )
at Aspose.Pdf.License.SetLicense(String licenseName)

Hi Tyler,

Thanks for contacting support.

Can you please share some sample project so that we can test the scenario at our end. We are sorry for this inconvenience.