I’m having troubles implementing the Aspose.Email license file for a web project. I am using the following code:
Aspose.Email.License mLicense = new Aspose.Email.License(); string mPath = System.Web.HttpContext.Current.Server.MapPath( @"~/Aspose.Email.lic" );
mLicense.SetLicense( mPath );
catch( System.Exception er )
Console.WriteLine( er.Message );
The file named Aspose.Email.lic is in the root of my web, and the mPath variable does return the correct location of the file. The product has been working correctly in Evaluation mode prior to the purchase and implementation of the license.
The Exception Message is:
“String was not recognized as a valid DateTime.”
Looking into the file itself, the only DateTime I find in the XML is “SubscriptionExpiry”, which has a value of “20060526”.
(I have also forwarded a copy of the license file via email.)