I am moving my web application from an older version of IIS that comes with Windows Server 2008 R2 to a newer version of IIS (I believe it is 10) that comes with Windows Server 2012. Both servers are 64 bit operating systems. My web application using PDFNet.dll works fine on the 2008 machine but fails on the 2012 machine. The error is:
Could not load file or assembly ‘PDFNet.DLL’ or one of its dependencies. The specified module could not be found.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly ‘PDFNet.DLL’ or one of its dependencies. The specified module could not be found.
I saw other posts with this error and the solution was to change the app pool setting “Enable 32-Bit Applications” to False. I can’t do that. I have to have this enabled because I have other 32 bit libraries that will fail otherwise. Also this setting was enabled on the old system and PDFNet.dll was not complaining there. Why is it complaining now? and how do I make it work on this new machine?