Wednesday, September 10, 2008

How to determine and to recover from Winsock2 corruption in Windows Server 2003, in Windows XP, and in Windows Vista
Method 1: Use the Netdiag tool
To use the Netdiag tool, you must install the Microsoft Windows XP Support Tools. To do so, follow these steps.Notes
•If you already have Support Tools installed, go to the second procedure in this section.
•If you do not have Support Tools installed and you do not have the Windows XP Setup CD, go to Method 2.
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.
When the installation is complete, follow these steps:
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
Method 2: Use the Msinfo32 program
Note Use this method only if you do not have a Windows XP Setup CD and you do not have Support Tools installed.
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...
•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. If there are fewer than ten sections, there is information missing.

Manual steps to recover from Winsock2 corruption
Windows XP with Service Pack 2 instructions :- To repair Winsock if you have Windows XP Service Pack 2 (SP2) installed, type netsh winsock reset at the command prompt, and then press ENTER.Note Restart the computer after you run this command.
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.
Windows XP without Service Pack 2 instructions
To repair Winsock if you do not have Windows XP SP2 installed, delete the corrupted registry keys, and then reinstall the TCP/IP protocol.
Step 1: Delete the corrupted registry keys
1.Click Start, and then click Run.
2.In the Open box, type regedit, and then click OK.
3.In Registry Editor, locate the following keys, right-click each key, and then click Delete:
HKEY_LOCAL_MACHINE >> System >> CurrentControlSet >> Services >> Winsock
HKEY_LOCAL_MACHINE >> System >> CurrentControlSet >> Services >> Winsock2
4.When you are prompted to confirm the deletion, click Yes.
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.
Step 2: Install TCP/IP
1.Right-click the network connection, and then click Properties.
2.Click Install.
3.Click Protocol, and then click Add.
4.Click Have Disk.
5.Type C:\Windows\inf, and then click OK.
6.On the list of available protocols, click Internet Protocol (TCP/IP), and then click OK.If Internet Protocol (TCP/IP) does not appear, follow these steps:
a. Click Start, and then click Search.
b. In the Search Companion pane, click More advanced options.
c. Click to select the following three check boxes:
•Search system folders
•Search hidden files and folders
•Search subfolders
d. In the All or part of the file name box, type nettcpip.inf, and then click Search.
e. In the results pane, right-click Nettcpip.inf, and then click Install.
7.Restart the computer.
Manual steps to recover from Winsock2 corruption for Windows Vista users
Winsock corruption can cause connectivity problems. To resolve this issue by using Network Diagnostics in Windows Vista, follow these steps:
1.Click , and then click Network.
2.Click Network and Sharing Center.
3.In the Network and Sharing Center box, click Diagnose and Repair.
Note You may also access the Network and Sharing Center in Control Panel.If the Network and Diagnostic tool was unable to find a problem, you can manually repair or reset Winsock.
Manual steps to repair or to reset Winsock for Windows Vista users
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.

No comments: