Handling PDF Documents in ASP on x64 Systems
We’ve updated the manual page that covers the configuration of DCOM on a 64-bit Windows 2012 Server. The key change is to run “MMC comexp.msc /32” on a 64-bit system rather than dcomcnfg.exe
Anyhow, here is the new page…
This section describes a problem that can be seen on ASP applications that handle PDF documents on x64 systems.
ScanBarCode returns -1 and GetLastError returns 3001.
CoCreateInstance is failing and is probably returning E_ACCESSDENIED. This is because IIS_IUSRS does not have permission for Local Launch or Local Activation of either the PDF2Image or PDF2TIFCom COM servers which are used by the SDK to convert PDF documents.
Grant access for the IIS_IUSRS user to launch and activate the above COM servers:
Run (as Administrator from the command prompt):
…on a 32-bit system Or
MMC comexp.msc /32
…on a 64-bit system
From Console Root, expand Component Services/Computers/My Computer/DCOM Config Scroll down to locate PDF2Image.CPDF2Image, right click on the item and select Properties. Click on the Security tab
In Launch and Activate Permissions select Customize and click on Edit.
If IIS_IUSRS is not in the list then click on Add and enter IIS_IUSRS before clicking on OK. Grant IIS_IUSRS permission for Local Launch and Local Activation.
Click on OK to exit from Launch and Activate Permissions and then click on OK to exit from Properties.
Repeat for PDF2TIFCom.CPDF2TIFCom