Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

Thu Aug 19, 2021 2:53 pm

I'm attempting to use FreeSpire to build a Word Document. I took some of your sample code for nested bullets and it worked perfectly in a .net client application for testing. When I added it to my server side SharePoint project, I get the following error when jumping into the routine where Spire is referenced.

{"Could not load file or assembly 'Spire.Doc, Version=7.2.8.19040, Culture=neutral, PublicKeyToken=663f351905198cb3' or one of its dependencies. The system cannot find the file specified.":"Spire.Doc, Version=7.2.8.19040, Culture=neutral, PublicKeyToken=663f351905198cb3"}
System.IO.FileNotFoundException: {"Could not load file or assembly 'Spire.Doc, Version=7.2.8.19040, Culture=neutral, PublicKeyToken=663f351905198cb3' or one of its dependencies. The system cannot find the file specified.":"Spire.Doc, Version=7.2.8.19040, Culture=neutral, PublicKeyToken=663f351905198cb3"}
Auto-attach to process '[18292] w3wp.exe' on machine 'vwmazshareptdv' succeeded.


I've seen references to making sure the license file was located with the Spire.Doc.DLL and it is. I'm not sure what needs to be done to correct this. It looks like this could be a good solution for some of my Word issues related to OpenXML. I just need some assistance getting it implemented. Any assistance would be appreciated.

Thank you.

kjandrow
 
Posts: 2
Joined: Thu Aug 19, 2021 2:40 pm

Fri Aug 20, 2021 11:20 am

Hello,

Thanks for your inquiry.

Please try to firstly register the corresponding dlls to the GAC like the following commands.
Code: Select all
gacutil -i E:\FreeSpire.Doc.7.11.0\lib\net40\Spire.Doc.dll
gacutil -i E:\ FreeSpire.Doc.7.11.0\lib\net40\Spire.License.dll
gacutil -i E:\ FreeSpire.Doc.7.11.0\lib\net40\Spire.Pdf.dll

If there is still any issue, please feel free to contact us.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1241
Joined: Mon Oct 19, 2020 3:04 am

Fri Aug 20, 2021 3:32 pm

That resolved my issue! Thank you very much!

kjandrow
 
Posts: 2
Joined: Thu Aug 19, 2021 2:40 pm

Mon Aug 23, 2021 2:07 am

You are welcome.
If you encounter any issues related to our products in the future, please feel free to contact us.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1241
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.Doc

cron