How To Fix Runtime Error 91
Runtime error 91 is a common and damaging error which might seem to appear randomly. This error is a very big problem for many computers, not least because of the way it doesn’t describe what problems that cause it and what makes it show up. The good news is that in order to fix the Runtime 91 error, there are certain steps you can take to resolve the issue for good.
What Is The Runtime 91 Error & What Causes It?
- “Runtime Error 91: Object variable or with block variable not set”
Runtime 91 error normally shows when you’re trying to use a program that has some sort of corrupt / inconsistent code inside. The likes of a missing DLL, corrupt file, virus infection or registry errors can cause this problem. More specifically, there is likely going to be a problem with DCOMCnfg.exe on your system – preventing your system from being able to load the files it requires to run.
How To Fix Runtime Error 91
Step 1 – Change DCOMCnfg.exe Settings
The main cause of this error is thanks to the way that “DCOMCnfg.exe” blocks permissions on certain files and programs. DCOMCnfg.exe is a program used to help your computer control various aspects of the system, from making it load its programs to helping you control file permissions. It’s often the case that DCOMCnfg.exe will block public access to certain files, thus creating the Runtime 91 error as a result.
You should load up DCOMCnfg.exe on your PC and change the permissions so that it grants access to “Everyone”.
Step 2 – Clean Out Viruses
Viruses are another big cause of the Runtime 91 error, and in order to prevent them from being such a big issue for your system, you should use an antivirus program to remove any of the infections on your PC. Antivirus programs are extremely popular online, and having used many of these tools ourselves, we’ve found that there’s one called XoftSpy which works the best & most reliably.
Step 3 – Clean The Registry
The ‘registry’ is a central database for Windows which stores all the settings and options that your computer requires to run. The registry is more-or-less the ‘library’ of your computer – storing all the settings it needs to run. As you use all the software on your PC, the registry is being read 100’s of times to help it recall various settings and information that your computer needs to run, and this can cause a big problem. The issue is that since the registry contains so many files and settings that Windows requires to run, most of the time, this database is continually becoming damaged and corrupted. This is a big problem because if it cannot read the settings it needs, it can cause the Runtime 91 error. To fix this problem, it’s highly recommended you use a registry cleaner, and you can see our top pick cleaner below: