-30 after Windows updates

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.

-30 after Windows updates

Postby Untoter on Tue Jun 12 2018

Hey,

our customers have problems using Amyuni PDF Converter (printer) after they had a recent Windows update. When they use our functions after that, they receive a -30 error. What are typical trigger for this error type?
Untoter
 
Posts: 22
Joined: Tue Nov 04 2014

Re: -30 after Windows updates

Postby Jose on Tue Jun 12 2018

Hello,

The default licensing information used by the Amyuni PDF Converter will write all of the printer information\settings to the (HKEY_CURRENT_CONFIG) the registry key and this key is read and written to each time the PDF Converter is accessed. These keys are also common for all users and all users of the PDF Converter must have at least read/write privileges to the "HKEY_CURRENT_CONFIG\Software\<Printer Name>" and "HKEY_CURRENT_CONFIG\Software" keys in the registry.

NOTE: “Printer Name” is the printer name that the Amyuni PDF Converter has been assigned to.

When upgrading a PC to windows 10 from another OSs or even between different windows 10 editions, the windows upgrade process does not retain permissions on these registry keys or in some cases, deletes these registry keys. This is a not a deficiency in our product but rather an issue in the windows upgrade process.

In order to resolve this situation there are basically three options:

Option #1:

Re-install the Amyuni PDF Converter after the windows upgrade. This will recreate the registry keys.

*This process will need to be done for each further windows upgrade

Option #2:

Manually recreate the registry key below and make sure to give the “Everyone” group full control to this key.

"HKEY_CURRENT_CONFIG\Software\<Printer Name>"

*This process will need to be done for each further windows upgrade

Option #3:

Depending on your current support plan and whether or not you are the registered user of the Amyuni PDF Converter license, you can request for a “per_user” licensing keys.

In order to resolve this situation (this is going to be the default for our upcoming v6.0 version) we suggest that you consider using our “per_user” license keys.

As mentioned, the default licensing information used with the PDF Converter will write all of the printer information to the registry key (HKEY_CURRENT_CONFIG) registry key.

This functionality can be modified by using our “Per User Activation Code” (this is going to be the default for our upcoming v6.0 version). This code causes the PDF Converter to save the printer settings in the HKEY_CURRENT_USER registry as opposed to the HKEY_CURRENT_CONFIG. Other than were the Amyuni printer driver “writes to” and “reads from” registry entries, the per_user and regular licensing keys function in the identical manner. All of the contents of the HKEY_CURRENT_USER remain intact when the system is upgraded by windows.

Thanks
Get PDF Suite, the expert .NET developer toolkit for PDF conversion, creation and editing - [color=#0040FF]www.amyuni.com/pdfsuite [/color]
Jose
Amyuni Team
 
Posts: 546
Joined: Tue Oct 01 2002

Re: -30 after Windows updates

Postby Barry on Wed Dec 12 2018

Hi,
We are seeing this same problem on 2016 servers, using Amyuni version 4.5.0.

We use the PDF print driver in both a desktop app and in an ISAPI DLL in IIS. Both of these apps are written in Microsoft MFC and are 32 bit apps. PDF printing works fine in the desktop app. In the ISAPI DLL an exception is thrown when the CDC::StartDoc method is called. The system event viewer shows "Application popup: Activation Error : Printer not activated, error code -30". We are calling EnablePrinter(return value of 1) immediately prior to calling StartDoc.

Earlier this year we dealt with the Microsoft OS issue related to impersonation and running a 32 bit process on a 64 bit OS. As part of that, we applied the Splwow64Compat registry setting and the neccessary OS updates. Following are the latest updates on the server:

Cumulative update: KB4457131 Oct 19, 2018
Security Update : KB4338814 July 29, 2018
2016 x64 Update : KB4132216 July 27, 2018

I tried your option #2, manual editing of the registry, but saw no change in behavior.

Please let me know what to do next.

thanks,
Barry
Barry
 
Posts: 2
Joined: Wed Dec 12 2018

Re: -30 after Windows updates

Postby Jose on Wed Dec 12 2018

Hi,

Is it possible that the ISAPI DLL is running under a user account with limited access to system registry? One good test (obviously not in a production environment) is to run under an administrator account and see if the “printer not activated error -30” still gets generated.

Thanks
Get PDF Suite, the expert .NET developer toolkit for PDF conversion, creation and editing - [color=#0040FF]www.amyuni.com/pdfsuite [/color]
Jose
Amyuni Team
 
Posts: 546
Joined: Tue Oct 01 2002

Re: -30 after Windows updates

Postby Barry on Thu Dec 13 2018

Hi Jose,

I did try just that, using my own credentials(as an admin) as the identity for "Anonymous Authentication" into the IIS Application, and for the identity of the AppPool. Unfortunately, it made no difference. Our usual configuration is to simply use the ApplicationPoolIdentity for each of these settings.
Barry
 
Posts: 2
Joined: Wed Dec 12 2018

Re: -30 after Windows updates

Postby Jose on Fri Dec 14 2018

Hi Barry,

The other option available is try our Per_User licensing keys. However, this option will require that you upgrade to our current v6 version of the PDF Converter.

thanks
Get PDF Suite, the expert .NET developer toolkit for PDF conversion, creation and editing - [color=#0040FF]www.amyuni.com/pdfsuite [/color]
Jose
Amyuni Team
 
Posts: 546
Joined: Tue Oct 01 2002


Return to Amyuni PDF Converter (PDF Printer Driver)

Who is online

Users browsing this forum: No registered users and 4 guests