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.

Fri Apr 13, 2018 10:21 pm

Here's the message:
"Could not load file or assembly 'Spire.Pdf, Version=4.3.0.20035, Culture=neutral, PublicKeyToken=663f351905198cb3' or one of its dependencies. The system cannot find the file specified."

I added reference to Spire v2.0.50727. We have a large code base on .Net 3.5. I can't move to .Net 4.0. the version I installed is from spire.pdf-fe_4.3.msi. How can I use spire with the older version?
Thanks,
Tim

tfloto
 
Posts: 4
Joined: Fri Apr 13, 2018 10:10 pm

Mon Apr 16, 2018 3:30 am

Hello,

Thanks for your post.
Please make sure that you have referenced all the Spire dlls, which includes the following two, and then rebuild your project.
Spire.Pdf.dll 4.3.0.20035
Spire.License.dll 1.3.6.35
One more thing, kindly note that our single product is used respectively, if you want to use two products or more together, you need to choose Spire.Office.
By the way, what is the type of your application? Such as console application.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Mon Apr 16, 2018 4:23 pm

When I run the 4.3.0.20035 When I attempt to access Spire PDf functionality I get the aforementioned error. Even though PDF and License files show up in the references and were added with out incident.
I am using this in a windows GUI application.
Last edited by tfloto on Mon Apr 16, 2018 7:19 pm, edited 1 time in total.

tfloto
 
Posts: 4
Joined: Fri Apr 13, 2018 10:10 pm

Tue Apr 17, 2018 2:59 am

Hello,

Thanks for your feedback. Is it a WindowsFormsApplication? I attached a WindowsFormsApplication which worked smoothly on my side. Please try it on your side. If it isn't helpful to find out the cause of the issue, please generate a simple application that can reproduce the issue and send it to us.
http://www.e-iceblue.com/downloads/atta ... ation1.zip

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Wed Apr 18, 2018 2:50 pm

Here is how I can reproduce my problem:
If I use the Demo Solution; CSDemos-Fe-VS2010.sln as distributed and build HelloWorld-VS2010 it builds and runs fine. But I notice
that it is using .Net Framework 4.0. If I change the Framework to .NET Framework3.5. I get the following error, during build:
Error 1 The type or namespace name 'Spire' could not be found (are you missing a using directive or an assembly reference?) C:\Program Files (x86)\e-iceblue\Spire.Pdf-Fe\Demos\CS\WinForms\01_Quick guide\HelloWorld\Form1.cs 4 7 HelloWorld-VS2010
The WindowsFormApplication works fine, though. I am trying to figure the differences between the HelloWorld demo app with .Net 3.5 and the Win Form app with .Net 3.5. The application I am developing behaves like the demo HelloWorld app.
ANy Ideas?

tfloto
 
Posts: 4
Joined: Fri Apr 13, 2018 10:10 pm

Thu Apr 19, 2018 1:48 am

Hello,

Thanks for your information. Once you have changed the Framework to .NET Framework3.5, you need to replace the Spire.Pdf dll with .NET3.5 at the same time. You could find it under the bin folder of Spire.Pdf installation.

Best regards,
Simon
E-ice blue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Fri Apr 20, 2018 3:23 am

Hello,

Greeting from E-iceblue.
How is the issue going? Is it resolved?
Your feedback will be greatly appreciated.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Fri Apr 20, 2018 2:45 pm

I am still having this issue. The reference in C# show: C:\Program Files (x86)\e-iceblue\Spire.Pdf-Fe\Bin\NET3.5\Spire.Pdf.dll. The Version is: 4.3.0.20035. The Run Time version is: v2.0.50727. For the license the reference shows: C:\Program Files (x86)\e-iceblue\Spire.Pdf-Fe\Bin\NET3.5\Spire.License.dll. The Version is 1.3.6.35. The Run Time Version is: v2.0.50727.
Yet, I get the message:
Could not load file or assembly 'Spire.Pdf, Version=4.3.0.20035, Culture=neutral, PublicKeyToken=663f351905198cb3' or one of its dependencies. The system cannot find the file specified.
The exception shows: System.IO.FileNotFoundException.
Any ideas?

tfloto
 
Posts: 4
Joined: Fri Apr 13, 2018 10:10 pm

Mon Apr 23, 2018 8:29 am

Hello,

Thanks for your feedback. Please check the Copy Local priorities of Spire dlls in your application. If you choose false, you need to register the dlls to the GAC in the develop command prompt for vs. e.g, I use the below command.
gacutil -i F:\SpireDLLS\spire.pdf_4.3\BIN\NET4.0\Spire.Pdf.dll
gacutil -i F:\SpireDLLS\spire.pdf_4.3\BIN\NET4.0\Spire.License.dll

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Wed Apr 25, 2018 2:27 am

Hello,

Greeting from E-iceblue.
How is the issue going?
We will appreciate it if you could give us some feedback.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Return to Spire.PDF