Q: I have recently downloaded your product PDFNet, I got the zip file named PDFNet64DotNet4.zip. I am running Windows 7 and I am trying to utilize your library with in a set of WCF services that run on IIS. The Services need to run on IIS because I use the services in the Silverlight application. I get this error:
The evaluation version encountered an error in your system configuration.
Please contact customer support at: support at pdftron.com. No reg. write rights
A: The error means that your application does not have sufficient permission to write to the Windows Registry. The demo version of the PDFNet library requires read/write access to the Registry. Because your application runs on IIS, you will need to allow the Application Pool’s identity to have Registry access. You can see which identity you are using by going to the IIS Manager, select the Server, then go to Application Pools.
You can optionally change your application pool’s identity to a user account (as opposed to system accounts). Provided that the user account has read/write access to the registry, the trial version of PDFNet will work under this identity in IIS. You can use a user account with your application pool by doing the following:
Go to IIS Manager, select the web server, and then to Application Pools.
Click on the application pool you are using from the list, then on the Actions panel, under Edit Application Pool, click Advanced Settings…
In the Advanced Settings dialog, go to the Process Model section and click on the Identity to change it.
Once the Application Pool Identity dialog shows up, select Custom account:, then click Set…
Enter the user account information in the Set Credentials dialog box. Note: you may have to specify the domain of the user (i.e. MyServerDomain\MyUserAccount).
Click OK until all dialog boxes are closed.
Keep in mind that this is not an ideal solution for production environments as your application is now more privileged. Should you wish to use PDFNet on a production application, we suggest obtaining a license to remove demo limitations.
Thanks for your help. Pointing me to permissions was enough for me to get somewhere. My development machine is Windows 7/IIS 7, and trust levels were set to full. However, adjusting the Process Model/Load User Profile option to true in the IIS application pool advanced settings seems to be setting me straight.