Runtime Error 91 (How to Fix It on Windows?)
Kelly G.
Issue:I had an error "Runtime error 91. This program can't start"
Hi,
when trying to access excel I got an error saying "Runtime error 91" or something like that.
Can you please explain about it and help me solve it?
Thank you.
There are many errors encountered on Windows and one of them is the Runtime Error 91: Object variable or with block variable not set. This error occurs on all versions of Windows-based operating systems and it Is a relatively common error. In addition, the main culprit behind is the DCOMCnfg.exe file, which is often used to configure permissions and set system-wide security settings. Moreover, this error is a very common technical error that can often be encountered by beginners and even experienced programmers.
Remember that when a file is corrupted or when some other issues occur, the program will not work properly. Because of this, the Runtime Error 91 pops up on the screen. But there are other reasons for the issue to be encountered. We have to explore all possible methods which could help in fixing the runtime error 91.
If you know, there are different scenarios when the Runtime Error 91 can show up, such as during program installation, startup operation, or a shutdown, although some users may also see the error when they upgrade their Windows to a newer version.
In case that the runtime error 91 occurs after program installation, it is because of the problems with a link to the downloaded software. Some runtime error 91 appears when the link is missing or interrupted. The error is commonly followed by the Error 59999 – Application-defined or object-defined error.
If you notice, the latter error might occur when generating a report to XML/Enhanced XML and is caused by insufficient permissions on the FRxXMLTag.XML file in the FRx directory. To remedy the error, you have to fix the file.
Now let’s dive deeper and check how we can fix that runtime error.
Option #1: Automatically Fix the Runtime Error 91 (Scan Your PC)
The malware can cause too many issues on your computer and could also corrupt multiple files in relation to either system or program files. With that said, malware can be one of the factors why you are facing the runtime error 91. In making sure that this is not the case, you should scan the computer with reputable anti-malware software. Keep in mind that there are plenty of paid and free third-party anti-malware solutions available online. In case you do not have software in mind, use our recommended iolo System Mechanic to perform a full system scan in order to make sure no malicious files are present.
You can also use the built-in Windows Defender. To do so:
- Click on system tray arrow then double-click the Windows Security icon
- Select Virus and threat protection
- Choose the Scan options
- Click on the Full scan option and click Scan now
Option #2: Reinstallation of the Problem-Caused Application To Fix the Runtime Error 91
There are issues with variables which might be caused by the corruption of file. To fix corrupted data in the system files, the users could run a built-in SFC scan. But, the method will not work if the files corrupted are not existing on Windows but the external application. Try to do a reinstallation of the problematic app causing Runtime Error 91. To do so:
- Go to Control Panel
- Go to Programs > Uninstall a program
- From the list, select the app, right-click and select Uninstall
- After the uninstallation, re-install the app and see if that helps to fix Runtime Error 91
Option #3: Run the Latest Windows Update
The Runtime Error 91 might be related to .NET Framework and Visual Basic, updates for which are applied via Windows updates. To do the Windows update:
- Go to Start then Settings
- Select Update & Security
- Click Check for updates
- Wait for the downloads and installation
- Reboot your computer
Option #4: Enable DCOMCnfg.exe to run by “Everyone”
- Type the DCOMCnfg.exe into Windows search box
- Check the Component Services window then go to Component Services > Computers > My Computer
- Right click on My Computer then select Properties
- Select COM Security tab
- Click Edit Limits
- Choose Everyone from the groups then set Local and Remote Access to Allow
Option #4: Full Control of FRxXMLTag.XML file
In case that the Runtime Error 91 is followed by the Error 5999, do the following steps:
- Run Windows as administrator
- In Windows Explorer browse to FRx directory
- Right-click on the FRxXMLTag.XML file and select Properties
- When in Properties, click the Security Tab
- In Security Tab, add the group Everyone and select Full Control
- Select OK
Conclusion and Last Tips
We hope that this guide solved your Runtime Error 91 issue.
If not, we recommend downloading and running a scan with iolo System Mechanic, to make sure your issue or any malware is removed.
In addition, don’t forget to do regular backups of your important files, and follow the best online security practices.
Offer
iolo System Mechanic® — is a patented PC & MAC repair tool & the only program of its kind. Not only it’s a registry fix, PC optimizer, or an anti-virus/malware remover – The iolo System Mechanic® technology reverses the damage done to Windows or Mac, eliminating the need for time-consuming reinstallations & costly technician bills.
It is available for FREE. Although, for some more advanced features & 100% effective fixes you may need to purchase a full license.
If your ‘Runtime Error 91’ is still not fixed — don’t hesitate and contact us via email, or a Facebook messenger (the blue ‘bubble’ on the bottom-right of your screen).