Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Sat Apr 18, 2020 4:23 am

Dear Supportteam,

This is a urgent case, I am using multiple Spire .NET Components (Spire.XLS, Spire.PDF, Spire.Presentation), all "Pro Edition Developer OEM Subscription" in the same Project.
Using the latest releases via Nuget i have multiple issues:
versions.png

Sprire.XLS crahses after:
Code: Select all
Workbook wb = new Workbook();

The type initializer for 'sprួ' threw an exception.
at sprួ..ctor()
at Spire.Xls.Workbook..ctor()


And I have a Warning: There were conflicts between different versions of "Spire.Pdf" that could not be resolved. These reference conflicts are listed in the build log when the log verbosity is set to Verbose.


Please let me know what version for each component i should use.
Regards Christian

PrintPro
 
Posts: 55
Joined: Tue Apr 16, 2019 6:17 pm

Mon Apr 20, 2020 2:10 am

Hi Christian,

Thanks for your inquiry and sorry for the late reply as weekend.
If you want to use Spire.XLS, Spire.PDF and Spire.Presentation in the same project, please download our Spire.Office (the latest version is Spire.Office 5.3.7) to avoid incompatibility issues.
Feel free to let us know if you have further questions.

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Mon Apr 20, 2020 6:33 am

Hi Rachel,

thanks for your respone. I uninstalled all Spire Components and installed Spire.Offce via Nuget. Now the system crahses with:
System.IO.FileLoadException: "Could not load file or assembly 'Spire.License, Version=1.3.8.46, Culture=neutral, PublicKeyToken=b1144360237c8b3f' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"


What do I need to change?

PrintPro
 
Posts: 55
Joined: Tue Apr 16, 2019 6:17 pm

Mon Apr 20, 2020 7:29 am

Solved!

In the app.config spire.license was still referenced. I just delted the entry and now it seems to work!

thanks and best regards
Christian

PrintPro
 
Posts: 55
Joined: Tue Apr 16, 2019 6:17 pm

Mon Apr 20, 2020 7:33 am

Hi Christian,

Glad to hear that you find the cause yourself!
If you encounter any issue related to our product in the future, 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

Return to Spire.PDF