Help – need to get this working by today. (sorry for the short notice).
Exception thrown when I call the “Aspose licence file file could not be read:
Illegal characters in path.” When I call the “license.SetLicense(reader.ReadToEnd());“.<?xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” /><o:p></o:p>
Is there a mistake in the code I have or the licence file? Also, The file name and location is correct because if I force the file name to be wrong “zzzAspose.Total.lic” it generates a different message of file not found. So it’s finding the file. The licence file was purchased and created by a contracting developer who’s left.
StreamReader reader = System.IO.File.OpenText("Aspose.Total.lic");
//
// AisiSharepointClient.Reports.Aspose.Total.lic
Aspose.Pdf.License license = new License();
license.SetLicense(reader.ReadToEnd());
File name = “Aspose.Total.lic”
<?xml version="1.0" encoding="utf-8"?>
<License>
<Data>
<LicensedTo>############</LicensedTo>
<LicenseType>Site Small Business</LicenseType>
<LicenseNote>Limited to 10 physical sites, not to exceed 10 developers</LicenseNote>
<OrderID>############</OrderID>
<OEM>This is not a non-redistributable license</OEM>
<Products>
<Product>Aspose.Total</Product>
</Products>
<EditionType>Enterprise</EditionType>
<SerialNumber>########-####-####-####-############</SerialNumber>
<SubscriptionExpiry>20140630</SubscriptionExpiry>
<LicenseVersion>2.2</LicenseVersion>
</Data>
<Signature>############################################################################################################################################################################</Signature>
</License>