Using Spire.doc, Spire.xls and Spire.Presentation in same project


Is it possible to use the 3 products in the same project?

Just downloaded the free versions of each and the Spire.PDF.dll version are different and causes error "System.IO.FileLoadException: Could not load file or assembly 'Spire.Pdf, Version=, Culture=neutral, PublicKeyToken=663f351905198cb3' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

Spire.doc uses version and Spire.Presentation uses

I tried using dependentAssembly

    <assemblyIdentity name="Spire.Pdf" publicKeyToken="663f351905198cb3" culture="neutral" />
    <bindingRedirect oldVersion="" newVersion="" />

But get an error

TypeLoadException: Could not load type 'sprẒ' from assembly 'Spire.Pdf,
Version=, Culture=neutral, PublicKeyToken=663f351905198cb3'.
asked on Stack Overflow Jul 7, 2014 by Eduardo Molteni • edited Dec 21, 2015 by Eduardo Molteni

2 Answers


Alone three libraries can't be used in the same project. You can download the free Spire.Office which including libraries of Spire.Doc, Spire XLS, Spire.Presentation, Spire.PDF, Spire.DataExport, Spire.PDFViewer, Spire.DocViewer and so on. Using Spire.Office you can use libraries of Spire.Doc,Spire.Presention and Spire.Xls in same project.


Clear out the 'dependentAssembly' section that references the Spire Dlls in your 'app.config' file altogether. That's what worked for me.

answered on Stack Overflow Jan 22, 2020 by ecklerpa

User contributions licensed under CC BY-SA 3.0