You receive a "0x80070002" error code when you download an update from Windows Server Update Services in Windows XP (920151)



The information in this article applies to:

  • Microsoft Windows XP Professional
  • Microsoft Windows XP Home Edition

Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry

SYMPTOMS

When you download an update from a Microsoft Windows Server Update Services (WSUS) server on a Microsoft Windows XP-based computer, the update may fail. Additionally, a red X may appear adjacent to the update. In this case, you receive the following error code:
0x80070002
Furthermore, a full debug log shows information that resembles the following:
 

2005-12-15	11:09:52	1208	670	PT	Config from server:
2005-12-15	11:09:52	1208	670	PT	  LastChange: 2005-10-19T20:50:50.2100000-06:00
2005-12-15	11:09:52	1208	670	PT	  IsRegistrationRequired: TRUE
2005-12-15	11:09:52	1208	670	PT	  AuthPlugInInfo (1):
2005-12-15	11:09:52	1208	670	PT	  PlugInID: SimpleTargeting
2005-12-15	11:09:52	1208	670	PT	  ServiceUrl: 
SimpleAuthWebService/SimpleAuth.asmx
2005-12-15	11:09:52	1208	670	PT	  Parameter: 
2005-12-15	11:09:52	1208	670	PT	  AllowedEventIds (0):
2005-12-15	11:09:52	1208	670	PT	  Properties (1):
2005-12-15	11:09:52	1208	670	PT	  Name: MaxExtendedUpdatesPerRequest
2005-12-15	11:09:52	1208	670	PT	     Value: 50
2005-12-15	11:09:52	1208	670	PT	PTInfo: Server requested registration
2005-12-15	11:09:52	1208	670	PT	WARNING: PTWarn: GetComputerNameEx is expected to 
fail with ERROR_MORE_DATA, hr=0x80070002
2005-12-15	11:09:52	1208	670	PT	WARNING: PTWarn: GetComputerDnsName failed, 
hr=0x80070002
2005-12-15	11:09:52	1208	670	PT	WARNING: PTError: 0x80070002
2005-12-15	11:09:52	1208	670	PT	WARNING: Cached cookie has expired or new PID is 
available
2005-12-15	11:09:52	1208	670	PT	Simple Targeting using relative URL
2005-12-15	11:09:52	1208	670	Misc	pszUrlCopy = 03905A70 -> 
http://sus/SimpleAuthWebService/SimpleAuth.asmx, urlComponents.lpszUrlPath = 
03905A84 -> /SimpleAuthWebService/SimpleAuth.asmx
2005-12-15	11:09:52	1208	670	Misc	exiting SetUrl
2005-12-15	11:09:52	1208	670	PT	PT: Using server URL 
http://sus/SimpleAuthWebService/SimpleAuth.asmx
2005-12-15	11:09:52	1208	670	PT	WARNING: PTWarn: GetComputerNameEx is expected to 
fail with ERROR_MORE_DATA, hr=0x80070002
2005-12-15	11:09:52	1208	670	PT	WARNING: PTWarn: GetComputerDnsName failed, 
hr=0x80070002
2005-12-15	11:09:52	1208	670	PT	WARNING: PTError: 0x80070002
2005-12-15	11:09:52	1208	670	PT	WARNING: PTError: 0x80070002
2005-12-15	11:09:52	1208	670	PT	WARNING: PTError: 0x80070002
2005-12-15	11:09:52	1208	670	PT	WARNING: PTError: 0x80070002
2005-12-15	11:09:52	1208	670	Report	Failed to obtain cached cookie with hr = 
80070002.
2005-12-15	11:09:52	1208	670	Report	WARNING: Reporter failed to upload events with 
hr = 80070002.
2005-12-15	11:09:52	1208	670	Report	Done uploading events. (80070002)
  

CAUSE

This problem may occur if the domain registry entry is missing from the following registry subkey on the Windows XP-based client computer:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\

RESOLUTION

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To resolve this problem, follow these steps.

Step 1: Add the Domain registry entry

  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate and then click the following registry subkey:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\

  3. On the Edit menu, point to New, and then click String Value.
  4. Type Domain for the name of the String Value, and then press ENTER.
  5. Exit Registry Editor.

Step 2: Restart the Automatic Updates service

  1. Click Start, click Run, type cmd, and then click OK.
  2. Type Net Stop WUAUSERV, and then press ENTER.
  3. Type Net Start WUAUSERV, and then press ENTER.
  4. Type Exit, and then press ENTER.
Alternatively, you can restart the computer to restart the Automatic Updates service.

Step 3: Add the Primary DNS suffix

  1. Click Start, click Run, type ncpa.cpl, and then click OK.
  2. Right-click the Network Connection that you are using, and then click Properties.

    Note Typically, the Network Connection that you are using is named Local Area Connection.
  3. Double-click Internet Protocol (TCP/IP).
  4. Click Advanced, and then click the DNS tab.
  5. Type type the DNS suffix in the DNS suffix for this connection box.
  6. Click OK, and then close the Networking properties windows.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Modification Type:MajorLast Reviewed:7/14/2006
Keywords:kberrmsg kbprb kbExpertiseInter KB920151 kbAudITPRO