Hi.
[Please refer my earlier post In my application, I am using HTTP module to register the License using the following code.
Aspose.Slides.License license = new Aspose.Slides.License();
license.SetLicense(httpApp.Context.Server.MapPath("~") + "\\" + licenseName);
The above piece of code runs for every request to my application by the user. So license is set everytime user hits my application. Manytimes, I am getting NullReferenceException (in the SetLicense call) in the place where the object can't be null at all. Is there any other way to call SetLicense as static method (so that it will be called only once when my application is hit for the very first time)? Will this be a solution to my problem? Please suggest.