Академический Документы
Профессиональный Документы
Культура Документы
Page 1 of 7
To continue receiving security updates for Windows, make sure you're running Windows XP
with Service Pack 3 (SP3). For more information, refer to this Microsoft web page: Support is
ending for some versions of Windows (http://windows.microsoft.com/en-us/windows/help/end-support-
windows-xp-sp2-windows-vista-without-service-packs)
When you try to release and renew the IP address by using the Ipconfig program
(Ipconfig.exe), you may receive one of the following error messages.
Message 1
Message 2
An error occurred while renewing interface Local Area Connection: the requested
service provider could not be loaded or initialized.
When you start Internet Explorer, you may receive the following error message:
When you use your computer, you may receive the following error message:
When you use the ipconfig /renew command, you may receive the following error
messages.
Message 1
Message 2
The operation failed since no adapter is in the state permissible for this
operation.
Message 3
The attempted operation is not supported for the type of object referenced.
In Device Manager, when you click Show Hidden Devices, the TCP/IP Protocol
Driver is listed as disabled under Non-Plug and Play drivers, and you receive
error code 24.
http://support.microsoft.com/kb/811259 7/2/2010
How to determine and to recover from Winsock2 corruption in Windows Server 2003,... Page 2 of 7
When you create a dial-up connection, you may receive the following error message:
These issues may occur if the Winsock registry keys are damaged or corrupted.
Notes
1. Insert your Windows XP Setup CD, and then locate the Support\Tools folder.
2. Double-click the Setup.exe file.
3. Follow the steps on the screen until you reach the Select An Installation
Type screen.
4. On the Select An Installation Type screen, click Complete, and then click
Next.
1. Click Start, click Run, type Command, and then click OK.
2. Type netdiag /test:winsock, and then press ENTER.
The Netdiag tool will return the test results for several network components,
including the Winsock. For more details about the test, use /v at the end of the
netdiag command: netdiag /test:winsock /v
1. Click Start, click Run, type Msinfo32, and then click OK.
2. Expand Components, expand Network, and then click Protocol.
3. You will have ten sections under Protocol. The section headings will include
the following names if the Winsock2 key is undamaged:
MSAFD Tcpip [TCP/IP]
MSAFD Tcpip [UDP/IP]
RSVP UDP Service Provider
RSVP TCP Service Provider
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
http://support.microsoft.com/kb/811259 7/2/2010
How to determine and to recover from Winsock2 corruption in Windows Server 2003,... Page 3 of 7
If you have a third-party add-on installed, the name of the add-on will replace the
letters "MSAFD" in the list.
If there are more than ten sections in the list, you have third-party additions
installed.
Note These entries represent an installation with only the TCP/IP protocol installed.
You can have a working Winsock and see additional entries if another protocol is
installed. For example, if you install NWLink IPX/SPX, you will see 7 additional
sections, for a total of 17. Below is an example heading of one of the new sections:
MSAFD nwlnkipx [IPX]
Also, each of the new sections that are created by installing NWLink IPX/SPX start
with "MSAFD." Therefore, there are still only two sections that do not start with
those letters.
If the Netdiag test fails, or if you determined that there is Winsock corruption by
looking at Msinfo32, you must repair the Winsock2 key by using the steps in the
next section.
To have us reset the Winsock settings for you, go to the "Fix it for me" section. To
reset the Winsock settings yourself, go to the "Let me fix it myself" section.
To reset the Winsock settings automatically, click the Fix it button or link. Click Run
in the File Download dialog box, and then follow the steps in the Fix it wizard.
Note this wizard may be in English only; however, the automatic fix also works for
other language versions of Windows.
Note if you are not on the computer that has the problem, save the Fix it solution to
a flash drive or a CD and then run it on the computer that has the problem.
http://support.microsoft.com/kb/811259 7/2/2010
How to determine and to recover from Winsock2 corruption in Windows Server 2003,... Page 4 of 7
netsh winsock reset at the command prompt, and then press ENTER.
Note Restart the computer after you run this command. Additionally, for computers
that are running Windows XP SP2, there is a new netsh command that can rebuild
the Winsock key. For more information, visit the following Web site:
http://technet.microsoft.com/en-us/library/bb457156.aspx
(http://technet.microsoft.com/en-us/library/bb457156.aspx)
Warning Programs that access or monitor the Internet such as antivirus, firewall, or
proxy clients may be negatively affected when you run the netsh winsock reset
command. If you have a program that no longer functions correctly after you use
this resolution, reinstall the program to restore functionality.
Note If these steps do not resolve the problem, follow the steps in the next section.
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 (http://support.microsoft.com/kb/322756/ ) How to back up and restore
the registry in Windows
For more information about how to back up the registry, click the following article
number to view the article in the Microsoft Knowledge Base:
322756 (http://support.microsoft.com/kb/322756/ ) How to back up and restore
the registry in Windows XP and Windows Vista
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock2
Note Restart the computer after you delete the Winsock keys. Doing so causes the
Windows XP operating system to create new shell entries for those two keys. If you
do not restart the computer after you delete the Winsock keys, the next step does
not work correctly.
http://support.microsoft.com/kb/811259 7/2/2010
How to determine and to recover from Winsock2 corruption in Windows Server 2003,... Page 5 of 7
1. Click Start, click Run, type Msinfo32, and then click OK.
2. Expand Components, expand Network, and then click Protocol.
3. Ten sections appear under Protocol. The section headings will include the
following names if the Winsock2 key is undamaged:
MSAFD Tcpip [TCP/IP]
MSAFD Tcpip [UDP/IP]
MSAFD Tcpip [TCP/IPv6]
MSAFD Tcpip [UDP/IPv6]
RSVP UDP Service Provider
RSVP TCP Service Provider
RSVP UDPv6 Service Provider
RSVP TCPv6 Service Provider
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
If the names are anything different from those in this list, the Winsock2 key
is corrupted, or you have a third-party add-on such as proxy software
installed.
If you have a third-party add-on installed, the name of the add-on will replace the
letters "MSAFD" in the list.
If there are more than ten sections in the list, you have third-party additions
installed.
Note These entries represent an installation with only the TCP/IP protocol installed.
You can have a working Winsock and see additional entries if another protocol is
installed. For example, if you install NWLink IPX/SPX, you will see 7 additional
sections, for a total of 17. Below is an example heading of one of the new sections:
MSAFD nwlnkipx [IPX]
Also, each of the new sections that are created by installing NWLink IPX/SPX start
with "MSAFD." Therefore, there are still only two sections that do not start with
those letters.
If the Netdiag test fails, or if you determined that there is Winsock corruption by
looking at Msinfo32, you must repair the Winsock2 key by using the steps in the
next section.
http://support.microsoft.com/kb/811259 7/2/2010
How to determine and to recover from Winsock2 corruption in Windows Server 2003,... Page 6 of 7
Vista users
Winsock corruption can cause connectivity problems. To resolve this issue by using
Network Diagnostics in Windows Vista, follow these steps:
1. Click ,
Note You may also access the Network and Sharing Center in Control Panel.
1. Click
, type cmd in the Start Search box, right-click cmd.exe, click Run as
administrator, and then press Continue.
2. Type netsh winsock reset at the command prompt, and then press ENTER.
Note If the command is typed incorrectly, you will receive an error message.
Type the command again. When the command is completed successfully, a
confirmation appears, followed by a new command prompt. Then, go to step
3.
3. Type exit, and then press ENTER.
For more information, click the following article number to view the article in the
Microsoft Knowledge Base:
936211 (http://support.microsoft.com/kb/936211/ ) How to troubleshoot network
connectivity problems in Internet Explorer
For more information about how to troubleshoot network and Internet connection
problems in Windows Vista, visit the following Microsoft Web site:
http://windowshelp.microsoft.com/Windows/en-US/Help/33307acf-0698-
41ba-b014-ea0a2eb8d0a81033.mspx (http://windowshelp.microsoft.com/Windows/
en-US/Help/33307acf-0698-41ba-b014-ea0a2eb8d0a81033.mspx)
APPLIES TO
http://support.microsoft.com/kb/811259 7/2/2010
How to determine and to recover from Winsock2 corruption in Windows Server 2003,... Page 7 of 7
http://support.microsoft.com/kb/811259 7/2/2010