Home Search Member List Faq Register Login  
UltimateSearch
Could not load file or assembly 'pdftotext' or one of its dependencies.

Thread Starter: smithfx   Started: 02-22-2010 6:14 AM   Replies: 7
 Karamasoft Support Forums » General Discussions » UltimateSearch » Could not load file or assembly 'pdftotext' or one of its dependencies.
 Printable Version    « Previous Thread   Next Thread »
  22 Feb 2010, 6:14 AM
smithfx is not online. Last active: 3/17/2010 3:38:58 PM smithfx

Top 10 Posts
Joined on 02-22-2010
Posts 8
Could not load file or assembly 'pdftotext' or one of its dependencies.
I am getting the following error when trying to access the admin page of the demo:

Could not load file or assembly 'pdftotext' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Reading some of the results from a search of the forum indicates that this may be a problem specific to 64 bit machines.

Two questions:

1. How do I correct this problem on my development machine (Windows 7 Ultimate 64-bit)?
2. How do I build and deploy to 32-bit production environments as well as 64-bit environments?

  
  22 Feb 2010, 11:02 AM
Karamasoft is not online. Last active: 9/8/2010 11:48:21 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,334
Re: Could not load file or assembly 'pdftotext' or one of its dependencies.
For 32-bit machines, copy the 32-bit dlls from C:\Inetpub\wwwroot\Karamasoft\ASP.NET2.0\UltimateSearch\v3.6\Controls\bin to your bin folder and rebuild your app.

For 64-bit machines, copy the 64-bit dlls from C:\Inetpub\wwwroot\Karamasoft\ASP.NET2.0\UltimateSearch\v3.6\Controls\bin\x64 to your bin folder and rebuild your app.

  
  22 Feb 2010, 12:45 PM
smithfx is not online. Last active: 3/17/2010 3:38:58 PM smithfx

Top 10 Posts
Joined on 02-22-2010
Posts 8
Re: Could not load file or assembly 'pdftotext' or one of its dependencies.
Thanks for the reply. I am able to load the site now but I am getting the following compile time error:

Could not load file or assembly 'pdftotext, Version=2.1.0.0, Culture=neutral, PublicKeyToken=5b5f377bc08a4d32' or one of its dependencies. An attempt was made to load a program with an incorrect format.

The size of the file in the bin folder is 1011 bytes and was extracted from the zip file.


  
  22 Feb 2010, 2:06 PM
Karamasoft is not online. Last active: 9/8/2010 11:48:21 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,334
Re: Could not load file or assembly 'pdftotext' or one of its dependencies.

Could you try to use the 32-bit dlls on your development machine as Visual Studio may not work properly with the 64-bit dlls in a design-time environment. If your production machine is 64-bit, you should be able to replace the dlls on it later, but try to use the 32-bit ones during development.


  
  22 Feb 2010, 2:08 PM
smithfx is not online. Last active: 3/17/2010 3:38:58 PM smithfx

Top 10 Posts
Joined on 02-22-2010
Posts 8
Re: Could not load file or assembly 'pdftotext' or one of its dependencies.
Ah, but then we are back to the orginal posting. The 32 bit dll will not allow the app to load. Or should I just bit the bullet and use the Adobe IFilter?
  
  22 Feb 2010, 2:28 PM
Karamasoft is not online. Last active: 9/8/2010 11:48:21 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,334
Re: Could not load file or assembly 'pdftotext' or one of its dependencies.
You shouldn't need to use Adobe IFilter. We have the exact same machine (Windows 7 64-bit) and it works just fine with the 32-bit dlls under the bin folder. Do you have pdftotext.dll, UltimateSearch.dll and UltimateSpell.dll under the bin folder of your own app? Have you tested with the provided sample C# and VB apps? Please check those apps and the dlls under their bin folders.
  
  22 Feb 2010, 3:06 PM
smithfx is not online. Last active: 3/17/2010 3:38:58 PM smithfx

Top 10 Posts
Joined on 02-22-2010
Posts 8
Re: Could not load file or assembly 'pdftotext' or one of its dependencies.
I have copied files from the 64 bit folder into the bin folder. When I do that, the files fail in compiling however the application rules. When I copy the files either from the bin folder of the controls or demo, the app compiles but I get the runtime error.

The demos do run so there is something else going on which the 64 bit dll doesn't like.

  
  22 Feb 2010, 3:25 PM
Karamasoft is not online. Last active: 9/8/2010 11:48:21 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,334
Re: Could not load file or assembly 'pdftotext' or one of its dependencies.
We don't know what exactly is causing the problem with the 64-bit dll in Visual Studio, but as long as you have the sample apps working properly with the 32-bit dlls under the bin folder, you can follow the same pattern to make your app work the same way.
  
 Page 1 of 1 (8 items)
Karamasoft Support Forums » General Discussions » UltimateSearch » Could not load file or assembly 'pdftotext' or one of its dependencies.

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2010 Karamasoft LLC. All rights reserved.