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 May 06, 2022 10:12 am

Hi
I am instantiating a new spire document in a vb program .net framework 4.8, using spire.doc 10.4.6.0 and spire.pdf 8.5.0.0 (both coming from nuget):
Dim document As Spire.Doc.Document = New Spire.Doc.Document

I can compile but at runtime ot this error:
System.TypeLoadException: Non è stato possibile caricare il tipo 'spr㠬' dall'assembly 'Spire.Pdf, Version=8.5.0.0, Culture=neutral, PublicKeyToken=663f351905198cb3'.
in Spire.Doc.Document..ctor()

Why i got an error of spire.pdf when i was using an element from spire.doc?

Thanks
Riccardo

RCantoni
 
Posts: 2
Joined: Fri May 06, 2022 10:00 am

Sat May 07, 2022 5:41 am

Hi,

Thank you for your inquiry.
Kindly note the Spire.Doc and Spire.PDF are two independent products, they can't be used together in a same project due to the incompatible. To get rid of the issue, please remove all spire dlls from your project and then install the Spire.Office from Nuget (https://www.nuget.org/packages/Spire.Office/7.4.10), in which all dlls are compatible. If there is still any question, please feel free to contact us.

Sincerely,
Kylie
E-iceblue support team
User avatar

kylie.tian
 
Posts: 412
Joined: Mon Mar 07, 2022 2:30 am

Mon May 09, 2022 8:42 am

It worked
Thanks
Riccardo

RCantoni
 
Posts: 2
Joined: Fri May 06, 2022 10:00 am

Mon May 09, 2022 9:06 am

Hi Riccardo,

Glad to hear that! If you encounter any issues related to our products in the future, please feel free to contact us.
Wish you all the best!

Sincerely,
Kylie
E-iceblue support team
User avatar

kylie.tian
 
Posts: 412
Joined: Mon Mar 07, 2022 2:30 am

Return to Spire.Doc