Search code examples
c#.netiisdllabcpdf

an attempt was made to load a program with an incorrect format in ABCPDF


Im Using ABCPDF.net version 5.0 in my development server and it works fine without any issue. Development Server Configuration: OS: Windows Server 2003 32 bit iis 6.0

Production Server Configuration: OS: Windows Server 2008 R2 64 bit Operations System iis7.5

The PDF option works fine in Development Server. But when i move the code to our production Server it is giving the following error

an attempt was made to load a program with an incorrect format Exception Code : 0*8007000b


Solution

  • In the IIS Manager (inetmgr.msc), find the app pool controling your application, and go to Advanced properties. flip "Enable 32bit Applications" to True. that should do ya. consider creating a new app pool for this purpose if the one you have is shared by multiple applications.