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

Free Support Forum - aspose.com

Project with ILMerge not working with 14.5.0

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,


Thanks for your inquiry. I suggest you please use the following code for applying the license:

FileStream stream = File.OpenRead(MyDir
  • @“Aspose.Words.lic”);

License license = new Aspose.Words.License();

license.SetLicense(stream);


In case the problem still remains, please post your license file via mail to us. We will investigate the issue on our end and provide you more information. In order to post your license file to us please follow the instructions provided in the following link:
http://www.aspose.com/corporate/purchase/faqs/send-license-to-aspose-staff.aspx

Best regards,

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,


Thanks for your inquiry. I am afraid, we haven’t received your license file yet. Please do the steps mentioned in the following link to be able to send it to us:
http://www.aspose.com/corporate/purchase/faqs/send-license-to-aspose-staff.aspx

Secondly, we need to reproduce the same exact problem on our side, it would be great if you please create a standalone runnable simple console application that helps us reproduce your problem on our end and attach it here for testing. As soon as you get this simple application ready, we’ll start investigation into your issue and provide you more information. Thanks for your cooperation.

Best regards,

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,


Thanks for the additional information. We are working over your query and will get back to you soon.

Best regards,

Hi Awais

Any news on that?

Best regards
Adrian

Hi Adrian,


Thanks for being patient. I was on leave last week. Please spare me some time for the investigation of this issue. I will get back to you soon.

Best regards,

Hi Adrian,


Thanks for being patient. After an initial test with Aspose.Words 14.7.0, I was unable to reproduce this issue on my side. I would suggest you please upgrade to the latest version of Aspose.Words. You can download it from the following link. I hope, this helps.
http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/default.aspx

Best regards,