Error message when you try to install a network printer on a Windows Vista-based computer: "Windows cannot connect to the printer Operation could not be completed (error 0x0000000d)"

Article translations Article translations
Article ID: 947236 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

When you try to install a network printer on a Windows Vista-based computer, you may receive the following error message:
Windows cannot connect to the printer. Operation could not be completed (error 0x0000000d).

CAUSE

This issue occurs because the following registry subkey on the print server contains invalid data:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3\<DriverName>\Previous Names


Note In this registry subkey, <DriverName> represents the name of the driver for the printer.

The Previous Names registry entry belongs to the REG_MULTI_SZ registry value type. The Previous Names registry entry is considered an invalid REG_MULTI_SZ registry value type if the following conditions are true:
  • The value of the Previous Names registry entry begins with a null.
  • This null is followed by some values.
  • The value of the Previous Names registry entry ends with a null.

RESOLUTION

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows


To resolve this problem, modify the value of the Previous Names registry entry on the print server so that it contains valid data. To do this, follow these steps:
  1. Click Start
    Collapse this imageExpand this image
    Start button
    , click Run, type regedit, and then click OK.
  2. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3\<DriverName>
  3. On the File menu, click Export.
  4. In the File name box, type printerName, and then click Save.
  5. Right-click printerName.reg, and then click Edit.
  6. Locate the sentence which starts with the "Previous Names" string, and then replace the sentence with the following text:
    "Previous Names"=hex(7):00,00
  7. On the File menu, click Save.
  8. Exit Notepad.
  9. Right-click the file that you saved in step 7, click Merge, and then click OK.
  10. Restart the Print Spooler service. To do this, follow these steps:
    1. Click Start
      Collapse this imageExpand this image
      Start button
      , type services.msc in the Start Search box, and then click services.msc in the Programs list.

      Collapse this imageExpand this image
      User
					 Account Control permission
      If you are prompted for an administrator password or for confirmation, type your password, or click Continue.
    2. Right-click Print Spooler, and then click Stop.
    3. Right-click Print Spooler, and then click Start.

MORE INFORMATION

A valid value of the REG_MULTI_SZ registry value types can be in any one of the following formats:
  • The value contains null only (00 00).
  • The value contains a valid ASCII representation of a string that points to a correct printer driver and ends with a double null (00 00 00 00).
For more information about the REG_MULTI_SZ registry value types, visit the following Web site:
http://msdn2.microsoft.com/en-us/library/ms724884.aspx

Properties

Article ID: 947236 - Last Review: January 30, 2008 - Revision: 1.2
APPLIES TO
  • Windows Vista Business
  • Windows Vista Enterprise
  • Windows Vista Home Basic
  • Windows Vista Home Premium
  • Windows Vista Ultimate
  • Windows Vista Business 64-bit Edition
  • Windows Vista Enterprise 64-bit Edition
  • Windows Vista Home Basic 64-bit Edition
  • Windows Vista Home Premium 64-bit Edition
  • Windows Vista Ultimate 64-bit Edition
Keywords: 
kbexpertiseinter kbtshoot kbprb KB947236

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com