Q: I am currently testing out your new PDFNet WebViewer Sample project
from PDFNet SDK. I'm running into some issues with the following
project: WebViewerStreamingCS_2008.
1. I've setup visual studio to use CassiniDev as suggested.
o When running the project in VS 2008 using CassiniDev I get an error
(see attached CassiniDev_Error.png)
2. I’ve tried using IIS and have setup virtual directory, and
converted the virtual directory to an application
o With this setup I get an
asp.net stack trace (see attached
IIS_Application_Error.jpg)
Looks like I need some additional help setting up this project.
Any help would be appreciated,
-----------------
A: The problem is that PDFNet DLL and the web server process are
incompatible (32 vs 64 bit).
According to:
https://groups.google.com/group/pdfnet-sdk/t/3a9e66fb6547db0c/7858192b1f10493a
you could use 32 bit version of PDFNet with IIS as follows…
... in your IIS 2008 R2 Web Server application pool, set the Identity
to "LocalSystem" (for both .NET 2.0 and .NET 4.0). Also, make sure to
set the "Enable 32-Bit Applications" to "True".