Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Fri Apr 24, 2020 6:55 pm

Testing a console app with the FreeSpire.Doc added to the project with NuGet. From everything i read, there should not have been a dependency on a license since it was the free version. I have the following code.

using Spire.Doc;

as soon as i execute the following code, i get the error below. Thoughts?

Document docNewFile = new Document();

Could not load file or assembly 'Spire.License, Version=1.3.7.40, Culture=neutral, PublicKeyToken=b1144360237c8b3f' or one of its dependencies. Access is denied.

jwest@triad.rr.com
 
Posts: 5
Joined: Tue Dec 13, 2011 8:01 pm

Sun Apr 26, 2020 6:02 am

Hello,

Thanks for your inquiry.
I did an initial test with FreeSpire.Doc 7.11.0 but didn't reproduce your issue. Kindly note that free version also contains the Spire.License.dll, below is the information of the dlls in FreeSpire.Doc V7.11.0 for your kind reference.
Spire.Doc.dll 7.11.0
Spire.License.dll 1.3.7
Spire.Pdf.dll 5.11.0

Are you trying to use multiple components of Spire in the same project? Since each of our products is independent and incompatible, if you want to use multiple components of Spire in a same project, you need to download the Free Spire.Office (the latest version is FreeSpire.Office 4.3.1) to avoid incompatibility issues.
Or if I misunderstood, please share your project with us for further investigation. You could send it to us(support@e-iceblue.com) via email.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Mon Apr 27, 2020 7:41 pm

i used the NuGet manager in VS and it added all the files that you listed below. I have created a separate test website to do the same thing this console app is supposed to do. It works fine. Opens the Word docx to insert data and creates the PDF exactly as I want. The console app fails at opening the Word docx with the error I had listed below. So, to me the only difference is the website works and the console app does not executing the same code for opening a Word docx file. I have removed the FreeSpire.doc references and then re-loaded them. I have rebooted the development server that i am using to build the console app and it is the same development server that i built the website that does work,

FILES
"Spire.Doc.dll 7.11.0
Spire.License.dll 1.3.7
Spire.Pdf.dll 5.11.0"

ERROR
Could not load file or assembly 'Spire.License, Version=1.3.7.40, Culture=neutral, PublicKeyToken=b1144360237c8b3f' or one of its dependencies. Access is denied.

jwest@triad.rr.com
 
Posts: 5
Joined: Tue Dec 13, 2011 8:01 pm

Mon Apr 27, 2020 8:39 pm

I figured out the problem. In the console app, I had to use windows account impersonation for the location that the files are going to be saved. It was that impersonation that caused the license issue. Once I modified the code to only use the impersonation during the save process and everything works as expected.

Thank you for your assistance.

jwest@triad.rr.com
 
Posts: 5
Joined: Tue Dec 13, 2011 8:01 pm

Tue Apr 28, 2020 1:03 am

Hello,

Thanks for your feedback.
Glad to hear that you found the cause yourself. If you need further assistance, just feel free to contact us.
Wish you all the best!

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Tue May 04, 2021 1:35 pm

Hola, estoy usando spire office con licencia, me genera perfectamente los docx pero al querer convertir en pdf siempre me sale este error:
java.lang.ArrayIndexOutOfBoundsException: 214032
2021-05-04 08:33:34,307 default task-50 (AbstractLoggingWriter.java:71) ERROR - at com.spire.office.packages.sprqKC.spr (Unknown Source)
2021-05-04 08:33:34,308 default task-50 (AbstractLoggingWriter.java:71) ERROR - at com.spire.office.packages.sprqKC.spr (Unknown Source)
2021-05-04 08:33:34,308 default task-50 (AbstractLoggingWriter.java:71) ERROR - at com.spire.office.packages.sprqKC.<init>(Unknown Source)
2021-05-04 08:33:34,308 default task-50 (AbstractLoggingWriter.java:71) ERROR - at com.spire.office.packages.sprpjC.spr (Unknown Source)
2021-05-04 08:33:34,308 default task-50 (AbstractLoggingWriter.java:71) ERROR - at com.spire.office.packages.spruIC.spr (Unknown Source)
2021-05-04 08:33:34,308 default task-50 (AbstractLoggingWriter.java:71) ERROR - at com.spire.office.packages.sprQjC.spr (Unknown Source)
2021-05-04 08:33:34,309 default task-50 (AbstractLoggingWriter.java:71) ERROR - at com.spire.office.packages.sprmiC.spr (Unknown Source)
2021-05-04 08:33:34,309 default task-50 (AbstractLoggingWriter.java:71) ERROR - at com.spire.office.packages.sprrKA.spr (Unknown Source)
2021-05-04 08:33:34,309 default task-50 (AbstractLoggingWriter.java:71) ERROR - at com.spire.office.packages.sprUGC.spr (Unknown Source)
2021-05-04 08:33:34,309 default task-50 (AbstractLoggingWriter.java:71) ERROR - at com.spire.office.packages.sprrKA.spr (Unknown Source)
2021-05-04 08:33:34,310 default task-50 (AbstractLoggingWriter.java:71) ERROR - at com.spire.office.packages.sprUGC.spr (Unknown Source)
2021-05-04 08:33:34,310 default task-50 (AbstractLoggingWriter.java:71) ERROR - at com.spire.office.packages.sprrKA.spr (Unknown Source)
2021-05-04 08:33:34,310 default task-50 (AbstractLoggingWriter.java:71) ERROR - at com.spire.office.packages.sprdLA.spr (Unknown Source)
2021-05-04 08:33:34,310 default task-50 (AbstractLoggingWriter.java:71) ERROR - at com.spire.office.packages.sprQjC.spr (Unknown Source)
2021-05-04 08:33:34,310 default task-50 (AbstractLoggingWriter.java:71) ERROR - at com.spire.office.packages.sprKue.spr (Unknown Source)
2021-05-04 08:33:34,311 default task-50 (AbstractLoggingWriter.java:71) ERROR - at com.spire.office.packages.sprKue.spr (Unknown Source)
2021-05-04 08:33:34,311 default task-50 (AbstractLoggingWriter.java:71) ERROR - at com.spire.doc.Document.spr (Unknown Source)
2021-05-04 08:33:34,311 default task-50 (AbstractLoggingWriter.java:71) ERROR - at com.spire.doc.Document.saveToFile(Unknown Source)

Hice la prueba con la versión free y no me muestra ese error, es decir me genera correctamente. Por favor si alguien me puede ayudar con eso

mtcapioffice
 
Posts: 1
Joined: Fri Apr 30, 2021 8:39 pm

Wed May 05, 2021 2:47 am

Hello,

Thanks for your inquiry.
If you were not using the latest Spire.Office (Spire.Office for Java Version:4.4.6), please first give it a try. If the issue still happens after trying, to help us better investigate your issue, please provide your Word document, your testing environment such as OS info (e.g. Windows 7, 64bit) and Region setting (e.g. China, Chinese). You could attach your file here or sent to our email (support@e-iceblue.com). Thanks in advance.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Fri May 21, 2021 7:58 am

Hi,

How is your issue going? Could you please give us some feedback at your convenience?
Thanks in advance.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Return to Spire.Doc