Handling PDF Documents in ASP on x64 Systems
This article explains how to configure your system to allow an ASP application to use the Softek Barcode Reader SDK to process PDF Documents on an x64 system.
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:
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