1

Error Occurs while running C# project, which uses itextsharp.dll to genereate pdf file

The content of error:

"Could not load file or assembly 'itextsharp, Version=5.4.1.0, Culture=neutral, PublicKeyToken=*****or one of its dependencies. The located assembly's manifest definition does not match the assembly reference' 

Can anyone help me?

Robert
  • 19,800
  • 5
  • 55
  • 85
Syed Mohamed
  • 1,339
  • 1
  • 15
  • 23

2 Answers2

1

Check first, whether the referenced version in your solution matches 5.4.1.0. You could try to select the reference in the project References folder and set "Specific Version" to false.

For further hints, see The located assembly's manifest definition does not match the assembly reference

Community
  • 1
  • 1
Samuel
  • 6,126
  • 35
  • 70
0

you have to paste the following 4 files

 itextsharp.dll,
 itextsharp.pdfa.dll,
 itextsharp.xml,
 itextsharp.xtra.dll 

in current folder, from where you are executing your .exe file.

Vigna
  • 113
  • 1
  • 5
  • 13