The illegal system DLL relocation error primarily appears in Windows XP when the user reboots the PC, runs a program, or downloads an application.
Due to this error prompt, you will not be able to open any programs on your computer, and sometimes the system will continually reboot by itself.
The main reason behind this issue is damaged, faulty, or missing system files, including the DLL ones. This is also a cause for many major problems in the Windows OS, apart from this DLL relocation error.
Now, to begin with, users can run the SFC scan in order to repair corrupt files and make applications run normally.
Secondly, programs that use the User32.dll file can be reinstalled to protect your PC from further problems. Below, I will explain how to do this in detail, along with five other fixes for this error.
1. Run the SFC scan.
The System File Checker (SFC) scan examines all the Windows files on your PC to determine if there are any issues. If it discovers an incorrect or overwritten file version, it replaces it with the correct version from the %Systemroot%\System32\Dllcache cache folder.
In case a DLL file has become corrupted over time, this scan will fix it for you automatically. So, here’s how to run the SFC scan:
- In the Windows search bar, type: CMD
- Select Run as Administrator to open the Command Prompt.
- Insert the following command and press Enter:
- Wait for the scan to complete and repair the damaged files.
- Now, run the program that was displaying the Illegal System DLL Relocation error and see whether the issue has been fixed.
2. Install Service Pack 3.
Service Pack 3 was the last update that Windows XP received and served as the successor to Service Pack 2. Many DLL errors on a Windows XP computer result from the outdated operating system running on SP1 or SP2.
Therefore, you need to install the latest Service Pack and restart your PC afterward to fix the issue. Unfortunately, the update is not available on Microsoft’s website; therefore, you must download it from an external source. Also, ensure that the hard disk has at least 1,500 MB of available space.
Note: If you already have SP3 installed, uninstall it and reinstall it again.
Here are the prerequisites and steps for installing SP3 on XP:
- Open Run with Win + R and type: appwiz.cpl
- This will take you to Control Panel > Uninstall or change a program.
- Remove the Microsoft Shared Computer Toolkit and Remote Desktop Connection.
- Disable your antivirus software.
- Now install Service Pack 3 by clicking on this link.
- Click ‘Next‘ on the Installation Wizard after the extraction is completed.
- Wait for the inspection and installation to be completed.
- Click Finish to restart your PC.
- Install any new security updates if you get the notification.
- Now open or download an application, and the DLL error should no longer show up.
3. Reinstall programs that use the User32.dll file.
User32.dll is an important file for running Windows operations. If it is removed or damaged, the programs using this file will not open, and you will receive the ‘Illegal System DLL Relocation’ error.
This occurs when you delete a program that was utilizing the User32.dll file. However, during the process, the dynamic link library (DLL) file is also removed. Now, you need to reinstall the programs on your computer that currently use the User32.dll file and display the relocation error upon launching.
This process can be time-consuming, depending on the number of programs you have to reinstall.
Here are the steps to identify the applications with the User32.dll file:
- Click on the Start Menu and type CMD.
- Run the Command Prompt with administrator access.
- Press Enter after typing the following command:
tasklist /m User32.dll
- A list will appear, displaying all the programs using this file.
- Determine which ones are causing the error during the opening process and reinstall them.
4. Perform a clean boot on Windows.
When you clean boot Windows, the system starts only with the necessary Windows services and default programs that are required for the computer to run. The reason for clean booting is that it doesn’t start any irrelevant services or programs that might be causing the DLL errors in normal booting mode.
After a clean boot, you can identify which programs were causing the issue and remove them.
Here’s how to clean boot a Windows XP computer:
- Click on Start, and then click on Run.
- Type msconfig and click OK.
- Click on Selective Startup in the General tab.
- Untick the following files:
- Process SYSTEM.INI File
- Process WIN.INI File
- Load Startup Items
- Keep the Load System Services and Use Original BOOT.INI checked.
- Click on the Services tab now.
- Tick mark the Hide all Microsoft Services option.
- Click Disable All to disable all other services, and then click OK.
- Finally, click Restart.
- In the System Configuration Utility prompt, place a checkmark in the “Don’t show the message… when Windows starts” box and click OK.
- The computer will now start in the clean boot state.
5. Create a new user account.
Sometimes, the problem can be with the user account that you are using on Windows, and creating a new one will resolve it. The process is uncomplicated and can be completed in under a minute. Here are the steps:
- Log in to Windows as an administrator.
- Click on the start button and go to the Control Panel.
- Click on User Accounts from the options available.
- Select Create a new account.
- Type the username you want, and then click “Next.
- Select whether the account should have administrative or limited privileges.
- Click on Create Account.
The account will be created here. You can further set up the profile picture and password according to your preference using the “Change an Account” option.
Now, try to install and open some programs in the new account and see whether the Illegal System DLL Relocation error appears.
6. Restore the computer to an earlier point.
System Restore allows your computer to revert to an earlier point in time. In case some files have become faulty or there is other data corruption, System Restore returns your system to the state where everything was functioning normally. This also resolves many DLL problems and issues.
Don’t worry; none of your data will be lost, and neither will any updates or programs. However, some recently installed applications might be removed if you’re going back to the point when they weren’t downloaded.
More often than not, Windows creates system restore points automatically. However, they can be made manually as well. For more on that, refer to our guide about how to create a system restore point.
Anyway, here is how to perform a system restore on a Windows XP PC:
- Click on the Start button.
- Go to All Programs > Accessories > System Tools > System Restore.
- Select the option that says: Restore my computer to an earlier time.
- Click Next.
- From the calendar on the left, select any of the highlighted, bold dates.
- From the right menu, select the restoration point.
- Click Next.
- Click Next again on the Confirm Restore Point Selection prompt.
- Wait for the system to reboot after the restoration.
- Once it restarts, open or download a program, and the DLL relocation error will be resolved.