如何判定並修復 Winsock2 毀損
檢視此文章適用的產品。
文章編號 : 811259
上次校閱 : 2006年5月24日
版次 : 12.5
重要 本文包含有關修改登錄的相關資訊。修改登錄之前,請務必將它備份起來,並瞭解如何在發生問題時還原登錄。如需有關如何備份、還原和修改登錄的詳細資訊,請按一下下面的文件編號,檢視「Microsoft 知識庫」中的文件:
256986 (http://support.microsoft.com/kb/256986/) Microsoft Windows 登錄說明
在此頁中
徵狀
發生的原因
解決方案
如何判斷 Winsock2 機碼是否已毀損
方法 1:使用 Netdiag 工具
loadTOCNode(3, 'resolution');
方法 2:使用 Msinfo32 程式
如何修復 Winsock2 的毀損
Windows XP 已安裝 Service Pack 2 時的指示
Windows XP 未安裝 Service Pack 2 時的指示
步驟 1:刪除毀損的登錄機碼
步驟 2:安裝 TCP/IP
徵狀
當您嘗試使用 Ipconfig 程式釋出及更新 IP 位址時,可能會收到下列錯誤訊息:
An error occurred while renewing interface 'Internet': (更新 [網際網路] 介面時發生錯誤:) 嘗試操作的對象不是通訊端。
當您啟動 Internet Explorer 時,可能會收到下列錯誤訊息:
無法顯示網頁
當您使用電腦時,可能會收到下列錯誤訊息:
Initialization function INITHELPERDLL in IPMONTR.DLL failed to start
with error code 10107 (IPMONTR.DLL 中的初始化函數 INITHELPERDLL 無法啟動,錯誤碼 10107)
此外,您可能沒有 IP 位址或「自動私人 IP 位址」(APIPA,Automatic Private IP Addressing),並且可能是在接收 IP 封包,而不是傳送。
當您使用 ipconfig /renew 命令時,可能會收到下列錯誤訊息。
訊息 1
An error occurred while renewing interface local area connection:an
operation was attempted on something that is not a socket.Unable to
contact driver Error code 2. (更新介面的區域連線時發生錯誤:嘗試操作的對象不是通訊端。無法連絡驅動程式。錯誤碼
2)
訊息 2
The operation failed since no adapter is in the state permissible for this operation. (作業失敗,因為沒有介面卡處於可以進行這項作業的狀態)
訊息 3
The attempted operation is not supported for the type of object referenced. (不支援這項物件參照類型的操作)
在 [裝置管理員] 中,當您按一下 [顯示隱藏裝置] 時,則 [非隨插即用驅動程式] 底下的 TCP/IP 通訊協定驅動程式列為已停用,而且您收到錯誤碼 24。
回此頁最上方
如何修復 Winsock2 的毀損
Windows XP 已安裝 Service Pack 2 時的指示
如果要在已安裝 Windows XP Service Pack 2 (SP2) 的情況下修復 Winsock,請在命令提示字元中輸入 netsh winsock reset,然後按下 ENTER。
注意 如果這些步驟無法解決問題,請依照下一節的步驟執行。
Windows XP 未安裝 Service Pack 2 時的指示
如果要在未安裝 Windows XP SP2 的情況下修復 Winsock,請刪除毀損的登錄機碼,然後重新安裝 TCP/IP 通訊協定。
步驟 1:刪除毀損的登錄機碼
警告 如果您使用「登錄編輯程式」或其他方法不當地修改登錄,可能會發生嚴重問題。這些問題可能會需要您重新安裝作業系統才能解決。Microsoft 不保證可以解決這些問題。請自行承擔修改登錄的一切風險。
回此頁最上方
這篇文章中的資訊適用於:
• Microsoft Windows XP Home Edition (家用版)
• Microsoft Windows XP Professional
• Microsoft Windows Server 2003, Standard Edition (32-bit x86)
• Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)