Could not load type 'spr2085' from assembly 'Spire.PDF'

Technical support for Spire.Doc

Moderator: iceblue support

Could not load type 'spr2085' from assembly 'Spire.PDF'

Postby jorgecachoh » Thu Jun 29, 2017 12:51 pm

Hi,

I'm using Free Spire.Doc to read a Word file and save it as PDF and I'm getting this error:

Code: Select all
"Could not load type 'spr2085' from assembly 'Spire.Pdf, Version=3.9.179.4040, Culture=neutral, PublicKeyToken=663f351905198cb3'.":"spr2085


Spire.Doc version is 5.7.0.54020

And the code geting the error is:
Code: Select all
Document document = new Document();
document.LoadFromFile(<full_path_to_Word_File>);
document.SaveToFile(<full_path_to_PDF_File>o, FileFormat.PDF);


How can I fix this error?

Jorge
jorgecachoh
 
Posts: 2
Joined: Fri Feb 10, 2017 10:49 am

Re: Could not load type 'spr2085' from assembly 'Spire.PDF'

Postby Jane.Bai » Fri Jun 30, 2017 2:12 am

Hello,

Thanks for your inquiry.
According to the exception details, you might have referenced the wrong version of Spire.pdf.dll. Please try to use the dlls from the same folder of Spire.Doc free version. Below are the dlls in the Spire.Doc free version for checking:

Spire.Doc.dll 5.7.0.54040
Spire.License.dll 1.3.5.40
Spire.Pdf.dll 3.7.291.54040

If there's still any issue after trying, please contact us again and provide your sample files.

Sincerely,
Jane
E-iceblue support team
User avatar
Jane.Bai
 
Posts: 621
Joined: Tue Nov 29, 2016 1:47 am

Re: Could not load type 'spr2085' from assembly 'Spire.PDF'

Postby Jane.Bai » Tue Jul 04, 2017 9:15 am

Hello,

How is your issue now? Could you please give us some feedback at your convenience?

Sincerely,
Jane
E-iceblue support team
User avatar
Jane.Bai
 
Posts: 621
Joined: Tue Nov 29, 2016 1:47 am

Re: Could not load type 'spr2085' from assembly 'Spire.PDF'

Postby jorgecachoh » Tue Jul 04, 2017 10:44 am

It is OK now.

Previously I installed Spire.Doc commercial version and althought I uninstalled it Visual Studio still had some reference to wrong dll versions.

Now all is ok.

Thanks

Jorge
jorgecachoh
 
Posts: 2
Joined: Fri Feb 10, 2017 10:49 am

Re: Could not load type 'spr2085' from assembly 'Spire.PDF'

Postby Jane.Bai » Wed Jul 05, 2017 1:12 am

Hello,

Thanks for your feedback.
If you have any other issue, please let me know.

Sincerely,
Jane
E-iceblue support team
User avatar
Jane.Bai
 
Posts: 621
Joined: Tue Nov 29, 2016 1:47 am


Return to Spire.Doc

Who is online

Users browsing this forum: No registered users and 0 guests