System error 126 displays at run time. Error 126, shown below, occurs when the windows operating system is trying to open a dynamic link library (DLL) or some other file and it cannot find the one needed for the application. The error message means that the file is either actually missing or has become corrupted. If the application was working properly before and nothing in the operating system has changed, the DLL has most likely become corrupted.

Common Causes of Error 126
MOD_NOT_FOUND – The system could not locate a DLL module needed by the application to run
SQL_126_severity_15 - The module needed by a database to run is not specified in your computer’s path statement. Many databases require that you have a client side copy of the needed DLLs for the application to work properly. Windows SQL server and Oracle databases are two of the most commonly used database applications that require client side DLLs.
CANNOT_GET_DN – the system cannot the data name (DN) specified. This error is cause by an incorrect configuration in the database client side application.
SYSTEM_THREAD_EXCEPTION_NOT_HANDLED – a processing error has occurred when trying to run a system thread which is most likely caused by a corrupted file that the thread called on during processing.
STATUS_RANGE_NOT_LOCKED – this happens when a file or record was not locked and it is safety mechanism built into the database to prevent corrupting data.
How to Repair Error 126
The first thing I would do is run a registry cleaner to eliminate any bad entries and other junk that is not needed. Then I would try running the application again and if I still got the 126 error I would perform the following steps.
MOD_NOT_FOUND, SQL_126_SEVERITY_15 and SYSTEM_THREAD_EXCEPTION_NOT_HANDLED
As you can see in the picture above, the error message will tell you which DLL it couldn’t find. In that case is was accessdb003.dll, which is one of the DLLs needed to open an access database.
In most case, replacing the DLL will fix the problem. Perform the following steps to replace the missing components. After each step, try running the application again to see if the repair worked.
- Install the most recent service pack for your version of windows
- If that doesn’t fix the problem, download and install the latest drivers for your computer
- If that doesn’t work, insert the original installation disk for your version of windows
- Open a command prompt by either selecting the icon on the start menu or selecting RUN from the menu and typing cmd in the dialogue box.
- Next copy the missing DLL (or other file) to the C:\Windows\System32 folder using the follow command
expand d:\i386\filename.dl_ C:\Windows\System32\filename.dll.
- You MUST replace “filename” in the command above with the actual name of the missing file stated in the error message.
- Next, type services.msc at the command line. The services window will open as shown below
- Scroll down to Server as shown and double click on it. The window below will open

- Click on Stop and wait until it stops
- Then click on start to restart the service.

CANNOT_GET_DN
You will need to open your client side database application and check on that the DN is correctly configured. You may need to contact the database administer to get the correct configuration information.
STATUS_RANGE_NOT_LOCKED
If this error pertains to a local file, all of the things we did to fix the MOD_NOT_FOUND error should also fix this problem. However, if the file is located on the database server you will need to contact the database administrator to resolve the problem.
Summary
As stated above, I would first run a registry cleaner and then try to run the application again. If that doesn’t work, follow the steps above. I also recommend running a registry at least once a month, installing the latest service packs and updating the computer’s hardware drivers to prevent this type of problem from occurring.
Related Searches
- error 126 (50)
- system error 126 (38)
- error 7 windows error 126 (7)
- error 7 (windows error 126) (5)
- error126 (3)
- system error encountered is 126 (3)
- windows error 126 (3)
- Operating system error 126 occurred (3)
- physxloader error 126 (2)
- what is error 126 (2)
- Eror 126 (2)
- COM error 126 (2)
- canon printer pm150 error126 (2)
- windows system error 126 (1)
- step by step on how to fix error 126 (1)
- seven service serveur erreur 126 (1)
- Runtime Error:126 (1)
- registry cleanup has error 126 (1)
- registry backup error 126 (1)
- windows xp problem System error 126 has occurred (1)


Comments on this entry are closed.