Fix Error 126 in Windows 7, Vista and XP

Error 126 is one of the most common errors found in Windows based operating systems. It generally occurs due to the problems relating to DLLs registration, and registry problems.

Following are the steps outlined to fix error 126 in Windows 7, Vista and XP:

1.       Re-register the System DLLs

2.       Relocate the Lost DLL File

3.       Stop a Service known as ‘Server’

4.       Delete a Registry Key

5.       Restore Windows to an Earlier Date

6.       Restore the System Files

7.       Delete Temporary Files

Re-Register the System DLLs
The term DLL stands for the Dynamic Link Library type of files found in the system folders. Each DLL file is to be registered in the system registry database when a new program is installed.

Due to system crashes, accidental reboots and BSODs, the DLL files registration entries are corrupted. To fix error 126 in Windows 7, Vista and XP, re-register all the system DLL files to fix your problem.

1.       Start a full registry scan with a Registry Cleaning software such as PC Frehser.

2.       When you are prompted to fix the errors inside Shared DLLs registry paths, click an appropriate button to fix them immediately.

3.       Reboot the system.

Relocate the Lost DLL File
A DLL file required to run Windows/ applications can be deleted, moved or renamed. Expand the original copy of it using the Windows installation DVD ROM that you have.

To fix error 126 in Windows 7, Vista and XP, follow these steps:

1.       Note down the name of the DLL file specified in the error 126.

2.       Insert Windows installation disc.

3.       Click Start, point to All Programs | Accessories.

4.       Right click Command Prompt and select Run as Administrator option.

5.       Type the following commands and press ENTER:

Expand d:\i386\filename.dl_ C:\Windows\System32\<FileName>.dll
Exit

6.       Restart your computer.

Note: In the Step 5 above, replace <FileName> with the name of the file you noted down in the Step 1 at the beginning.

Stop a Service known as ‘Server’
A service running in the background, known as ‘Server’, can be responsible for error 126. A way to fix error 126 in Windows 7, Vista and XP is to stop this service.

1.       Click Start on your Taskbar.

2.       Type Services.msc in the Search box.

3.       Right click Server, and select Properties.

4.       In the General tab, click the Stop button.

5.       Click OK.

Delete a Registry Key
In order to fix error 126 in Windows 7, Vista and XP, delete a registry key relating to SQL Server. Before modifying the registry, be sure to create a system restore point for precautions.

1.       Click Start, then Run.

2.       Type RegEdit and press ENTER.

3.       Browse the following registry path:

HKEY_LOCAL_MACHINE\Software\ODBC\ODBCINST.INI\SQL Server

4.        A registry key called SQL Server may be pointing to C:\Windows\System32\sqlsrv32.dll file path. Right click this key, and select Delete option. Confirm the action.

5.       Close Registry Editor.

Restore Windows to an Earlier Date
Using System Restore, restore the computer to an earlier date when no error was appeared. To fix error 126 in Windows 7, Vista and XP, do the following tasks:

1.       Click Start, point to All Programs | Accessories | System Tools.

2.       Select System Restore.

3.       Click Next button.

4.       Select a system restore point and click Restore Computer button.

5.       Follow the on screen instructions.

Restore the System Files
There is a tool called System File Checker. Using it, restore the system files which are corrupted/ overwritten.

1.       Click Start, select Run.

2.       Type SFC /ScanNow command and press ENTER.

3.       Wait till the process of analyzing system files is completed. It will automatically restore the corrupted files to their original versions.

4.       Reboot the system when this process is done.

Delete Temporary Files
Empty the temporary locations on your hard disk so as to fix error 126 in Windows 7, Vista and XP. The best option is to delete the temporary files using a System Cleaner. Otherwise, use the Disk CleanUp utility in Windows.

1.       Click Start| All Programs | Accessories | System Tools | Disk CleanUp.

2.       Select your system drive, usually drive C.

3.       Press ENTER.

 

Nauman Lodhi is an IT and Digital Media marketing professional. He is a contributor to many important technology websites such as this one. He can be reached here at his Google Plus Profile: Nauman G+

Leave a Reply