How to Troubleshoot Runtime Error 91 on Windows PC

Have you encountered the Microsoft Visual Basic error “Runtime error ’91’: Object variable or With block variable not set” when you open a SOLIDWORKS file? Or when you create a new SOLIDWORKS macro and see that message appear when you run it?

Fortunately for you, this is a very common VB error, and it’s not very difficult to determine where the problem lies.

What causes runtime errors 91?

The reason why the pop-up window with the message “Runtime Error 91: Object variable or with block variable not set” appears is because the DCOMCnfg.exe file may be corrupted. The DCOMCnfg.exe file is commonly used to configure permissions and set security settings on a system. If there is a problem with this file, your system will not be able to load the files needed to start up, and a runtime error 91 will be displayed. read more

How to Resolve the “Raw-Mode is Unavailable Courtesy of Hyper-V” VirtualBox problem

Oracle VM VirtualBox is a free x86 virtualization hypervisor developed by Oracle Corporation. It can be installed on a variety of operating systems, including Windows, macOS, Linux, Solaris, and OpenSolaris. However, if you run it on Windows, you may see the following error message: Raw mode is not available on Hyper-V (VERR_SUPDRV_NO_RAW_MODE_HYPER_V_ROOT).

What causes `Raw-Mode is Unavailable Courtesy of Hyper-V`?

The main reason for the error `Raw-Mode is unavailable courtesy of Hyper-V’ is the fact that Hyper-V is enabled on your machine. This proprietary virtualization technology from Microsoft allows you to create virtual machines on x86 and x64 systems running their own version of Windows.

A popular scenario that can cause this problem is when the HyperVisorLaunchType service is set to AUTO. This will force your system to check for applications that use VT-x before every virtual machine startup. read more