iTextSharp on 64-bit Windows Server 2003

View: New views
2 Messages — Rating Filter:   Alert me  

iTextSharp on 64-bit Windows Server 2003

by Xarx :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello.

I'm unable to get itextsharp.dll working on an x64 Windows Server 2003. The same binary works fine on any of our 32-bit systems.

Details:
Though the itextsharp.dll library seems to be a good assembly on 32-bit systems, on a 64-bit system it seems corrupted. I've tried to check its consistency with at least two tools,

http://checkasm.booring.net/
http://www.assemblyinspector.com/

and both report the assembly has an incorrect format. I've tried building itextsharp.dll with VS2008 with all 3 possible target platforms (Any, x64, x86; all for .NET 2.0), but the result is still the same. I also downloaded the itextsharp.dll binary from sourceforge.net with the same result.

.NET 2.0 (and now even .NET 3.5) framework is installed on the machine. All dependencies of itextsharp.dll seem to be satisfied, none is missing. It seems to me that the library is wrongly built, but I've been unable to fix it.

Can anyone help me?

Thank you,
Martin.

P.S. My original problem was that we have a C++/CLR COM library dependent on the itextsharp.dll. But regasm.exe refuses to register it on the 64-bit platform. The error message is:

RegAsm : error RA0000 : Could not load file or assembly 'PdfServiceLib, Version=1.0.3568.31893, Culture=neutral, PublicKeyToken=null' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)

I suspect itextsharp.dll to be the main reason.

Re: iTextSharp on 64-bit Windows Server 2003

by Xarx :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

the library works on 64-bit, the problem was elsewhere. The information shown by CheckAsm or Dependency Walker was misleading.

     Martin.