Thursday, July 2, 2009

how to resolve windows socket errors

cannot browse internet or local network? displaying errors looks like one of below

  • " unable to initialize windows socket interface error code 0, IPMONTR.DLL failed to start with error code 10107 "
  • " An error occurred while renewing interface 'Internet': An operation was attempted on something that is not a socket "
  • " An error occurred while renewing interface Local Area Connection: the requested service provider could not be loaded or initialized "
  • " The page cannot be displayed "
  • " 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 "
  • " The operation failed since no adapter is in the state permissible for this operation "
  • " The attempted operation is not supported for the type of object referenced "


the meaning of these errors are the Winsock registry keys are damaged or corrupted.

how to determine the winsock2 key is corrupted for windows xp, use one of the following methods.

method 1 - Netdiag tool

To use the Netdiag tool, you must install the Microsoft Windows XP Support Tools. To do so, follow these steps
  • Insert your Windows XP Setup CD, and then locate the Support\Tools folder.
  • Double-click the Setup.exe file.
  • Follow the steps on the screen until you reach the Select An Installation Type screen.
  • On the Select An Installation Type screen, click Complete, and then click Next.
When the installation is complete, follow these steps
  • Click Start, click Run, type Command, and then click OK
  • 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.

  • Click Start, click Run, type Msinfo32, and then click OK.
  • Expand Components, expand Network, and then click Protocol.
  • 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

step 1

to repair winsock in windows xp
  • go to the command prompt
  • type netsh winsock reset at the command prompt, and then press ENTER.
  • Restart the computer after you run this command
step 2

deleted the corrupted registry key

This method 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.

  • Click Start, and then click Run.
  • In the Open box, type regedit, and then click OK.
  • 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
  • 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 3

install TCP/IP

  • Right-click the network connection, and then click Properties.
  • Click Install.
  • Click Protocol, and then click Add.
  • Click Have Disk.
  • Type C:\Windows\inf, and then click OK.
  • On the list of available protocols, click Internet Protocol (TCP/IP), and then click OK
  • Restart the computer.
If Internet Protocol (TCP/IP) does not appear, follow these steps:

Click Start, and then click Search
In the Search Companion pane, click More advanced options
Click to select the following three check boxes
  • Search system folders
  • Search hidden files and folders
  • Search subfolders
In the All or part of the file name box, type nettcpip.inf, and then click Search.
In the results pane, right-click Nettcpip.inf, and then click Install.
  • Restart the computer.

resolve explorer.exe errors

did you have following error when you logon to windows xp

" Explorer.exe unable to locate component. This application has failed to start because Browseui.dll was not found. Re-installing the application may fix this problem"

and also your desktop icons, Start menu, and taskbar are NOT displayed.this may happens corrupt system files,dll file or can be virus infection,there are several methods you can try to overcome this problem.

caution - to resolve this issue you must have some advanced knowledge about windows xp.


method -1

lets try this simple method, first you need to run command, i know thats sounds crazy, you might wonder without getting to desktop how may i open run command, lets just say although you havent got desktop you can get task manager (by pressing alt + ctrl + delete) in there click new task, then you can get run command.in there type the following command

sfc /scannow (note that there is a space after sfc)

and you need to provide windows xp installation cd, now continue the process, after completion of process restart windows and check the problem,if this doesnt solve problem, try method 2


method 2

  • start your computer in safe mode with command prompt (to go safe mode with command prompt press F8 after bios information dispalyed, then selection menu displayed, now select safe mode with command prompt and press enter)
  • Select the operating system that you want to start in Safe Mode with Command Prompt and press Enter.
  • now insert the Windows XP installation CD to CD-ROM
  • At the command prompt, type CD /D %SystemRoot%\System32
  • Type ren browseui.dll browseui.old and press Enter. Ignore any error messages when appeared
  • Type and press Enter, where is the drive letter, followed by a colon, of the CD/DVD drive
  • Type expand Browseui.dl_ %SystemRoot%\System32\Browseui.dll and press Enter
  • Press CTRL+ALT+DELETE and select Shut Down using the TAB key. Press Enter
  • Use the arrow keys to select Restart and press Enter
  • After pc restarts and your desktop appears, open Windows Explorer and Internet Explorer. If you receive Explorer.exe has encountered a problem and needs to close or Iexplorer.exe has encountered a problem and needs to close, press More Information to verify the module name. If the module is Browseui.dll:
  • open command prompt
  • Type regsvr32 /s /u browseui.dll and press Enter
  • Now Type regsvr32 /s browseui.dll and press Enter
  • Shutdown and restart your computer
after running these steps your problem can be solved,if not the fresh installation of windows xp is the only solution.

Monday, June 29, 2009

what is TCP/IP protocol suite

tcp/ip is an industry - standard suite of protocols that enables enterprise networking and connectivity on windows xp professional based computers.adding tcp/ip to a windows xp professional configuration offers the following advantages.
  • a routable networking protocol supported by most operating systems.most large networks rely on tcp/ip
  • a technology for connecting dissinilar systems.you can use many standard connectivity tools to access and transfer data across dissimilar systems.windows xp professional includes several of these standard tools.
  • a robust, scalable, cross-platform client/server framework. tcp/ip supports the microsoft windows sockets (winsock) interface, which is ideal for developing client/server applications for winsock-compliant stacks.
  • a method of gaining access to internet resources.
the tcp/ip suite of protocols provides a set of standards for how computers communicate and how networks are interconnected. the tcp/ip suite of protocols maps to a four-layer conceptual model network interface, internet, transport and application.

how to perform check disk (chkdsk) in xp

Chkdsk requires exclusive access to a volume when it runs. Therefore, if one or more of the files are open on the disk that you want to check, Chkdsk displays a prompt asking if you want schedule the disk check for the next time that you restart your computer.Chkdsk might take a long time to run, depending on the number of files and folders, the size of the volume, disk performance, and available system resources, such as processor and memory.Chkdsk might not accurately report information in read-only mode.

Using Chkdsk at the command prompt

  • Click Start, and then Run.
  • type cmd, and then press ENTER.
Use one of the following procedures:
  • To run Chkdsk in read-only mode, at the command prompt, type chkdsk, and then press ENTER.
  • To repair errors without scanning the volume for bad sectors, at the command prompt, type chkdsk volume (drive letter):/f, and then press ENTER.

Note If one or more of the files on the hard disk are open, you will receive the following message:

  • Chkdsk cannot run because the volume is in use by another process. Would you like to schedule this volume to be checked the next time the system restarts? (Y/N)
  • Type Y, and then press ENTER to schedule the disk check, and then restart your computer to start the disk check.
  • To repair errors, locate bad sectors, and recover readable information, at the command prompt, type chkdsk volume (drive letter) :/r, and then press ENTER.

Using Chkdsk from My Computer or Windows Explorer

  • Double-click My Computer, and then right-click the hard disk that you want to check.
  • Click Properties, and then click Tools.
  • Under Error-checking, click Check Now. A dialog box that shows the Check disk options is displayed,
  • Use one of the following procedures:
  • To run Chkdsk in read-only mode, click Start.
  • To repair errors without scanning the volume for bad sectors, select the Automatically fix file system errors check box, and then click Start.
  • To repair errors, locate bad sectors, and recover readable information, select the Scan for and attempt recovery of bad sectors check box, and then click Start.
Note If one or more of the files on the hard disk are open, you will receive the following message:
  • The disk check could not be performed because the disk check utility needs exclusive access to some Windows files on the disk. These files can be accessed by restarting Windows. Do you want to schedule the disk check to occur the next time you restart the computer?
  • Click Yes to schedule the disk check, and then restart your computer to start the disk check.

to unhide security tab (win xp)

So to see and unhide the Security tab, just use the following steps:

  • Launch Windows Explorer or My Computer.
  • Click on the Tools at the menu bar, then click on Folder Options.
  • Click on View tab.
  • In the Advanced Settings section at the bottom of the list, uncheck and unselect (clear the tick) on the Use simple file sharing (Recommended) check box.
  • Click OK.
some tips

  • Simple File Sharing is a feature introduced in Microsoft Windows XP. Simple File Sharing removes some file sharing security options available in other versions of Windows. This helps Windows XP administrators quickly set up folder shares
  • Enabling Simple File Sharing prevents the ability to assign user-level passwords to shares. When Simple File Sharing is enabled on a computer, remote users will not be prompted for a password when accessing that computer's shares.
  • If the Windows XP Professional computer is part of a Windows domain rather than a Windows workgroup, this process for enabling or disabling Simple File Sharing has no effect. Simple File Sharing always remains disabled for computers joined to domains.