Hi
We are using Aspose.Words since a long time in a project that uses ilmerge to create one project DLL. We try to update our project from 14.2.0 to the newest 14.5.0 version. This produces serveral errors during the execution. We use the same build process as before. Just changed the DLL.
License wordLicense = new License();
string licenseString = @"<?xml version=‘1.0’…";
wordLicense.SetLicense(new MemoryStream(Encoding.ASCII.GetBytes(licenseString)));
Results in Error:
Attempted to read past the end of the stream.
at Aspose.Words.License.SetLicense(Stream stream)
Thanks for helping us!
Adrian
Hi Adrian,
- @“Aspose.Words.lic”);
License license = new Aspose.Words.License();
license.SetLicense(stream);
Hi Awais
That possiblity does not work for us. We have to integrate everything into the assambly. File access is not possible. So we have to use the stream approach.
If I change to demo license: license.SetLicense("") I get the same error. If I uncomment that line the error travels to an other method of your component.
My code line with next error. Is is an outputformat handler that i wrote:
outputFormatInfos.Add(new OutputFormatInfo(OutputFormat.Swf, new SwfSaveOptions(), “application/x-shockwave-flash”, “swf”));
I sent you our license by private message. E-Mail is no more possible as descibed.
Thanks
Adrian
Hi Adrian,
Hi Awais
Sorry that it took so long to give you an awnser. But it took us a while to extract the problem to a simple visual studio solution. The problem still remains. Also with aspose.words 14.6.
Please download the solution from (80mb, to big for forum):
https://www.wetransfer.com/downloads/3677bd96a850991041476cac310e041820140723134743/8fa9e39c2bea5210d395d63619a7a22920140723134743/911b99
Details about the error and the projects you find in Problem Description.docx.
If needed you can reach me by phone under: +41 44 400 30 67
Thanks
Adrian
Hi Adrian,
Hi Awais
Any news on that?
Best regards
Adrian
Hi Adrian,
Hi Adrian,