When installing Win2PDF, I'm get the error message "AddPrinter error 126."

Top  Previous  Next

This "AddPrinter error 126" can occur if either of the following conditions is true:

 

The %SYSTEMROOT%\System32\Wbem\framedyn.dll file is missing or damaged.

-or-

The Windows Path environment variable does not point to the %SYSTEMROOT%\System32\Wbem folder.

 

To correct the problem, use one of the following methods:

 

Run the Windows system file checker

 

The Windows system file checker will scan all protected Windows files and verify their versions.  If it detects any files that have been replaced or damaged, it will repair the files.  To run the system file checker:

 

1.Click Start, and then click Run.
2.In the Open box, type sfc /scannow and then click OK.

 

More information on the Windows system file checker is available at the following location:

http://support.microsoft.com/?kbid=310747

 

Replace the Framedyn.dll File

 

1.Click Start, and then click Run.        
2.In the Open box, type %systemroot%\system32\dllcache, and then click OK.        
3.Right-click framedyn.dll, and then click Copy on the shortcut menu that appears.        
4.Click Start, and then click Run.        
5.In the Open box, type %systemroot%\system32\wbem, and then click OK.        
6.On the Edit menu, click Paste. If you are prompted to replace the existing file, click Yes.        

 

Verify System Variables

 

1.Click Start, right-click My Computer, and then click Properties on the shortcut menu that appears. If you receive the following error message, click OK: rundll32.exe - Unable To Locate Component  This application has failed to start because framedyn.dll was not found. Re-installing the application may fix this problem.        
2.In the System Properties dialog box, click the Advanced tab.        
3.Click Environment Variables.        
4.Under System variables, click Path, and then click Edit. NOTE: If no Path variable is listed, click New. In the Variable name box, type Path.        
5.In the Variable value box, type the following: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\wbem        
6.Click OK three times (each time that you have the option).        

 

 

More information on this problem is at the following location:

http://support.microsoft.com/default.aspx?scid=kb;en-us;319114