Run-time error ‘91’: Object variable or with block variable not set

Error:

Run-time error ‘91’: Object variable or with block variable not set

Snapshot:

Causes:

  • It depends on which ActiveX Component the program is trying to initiate.
  • It’s possible that the program looking for its custom DLL/OCX, that has been erased from the system.

Solution 1: 

Unregister and Re-register the DownloadFile.ocx using Regsvr32.

  • Open Command prompt as Administrator
  • type Regsvr32 /u “C:\RelyonSoft\<Product_Name>\DownloadFile.ocx”.
  • Click enter to unregister.
  • type Regsvr32 /u “C:\RelyonSoft\<Product_Name>\DownloadFile.ocx”.
  • Click enter to register it.

Solution 2: 

Unregister and Re-register the FindMe.dll using Regsvr32.

  • Open Command prompt as Administrator
  • type Regsvr32 /u “C:\RelyonSoft\<Product_Name>\FindMe.dll”.
  • Click enter to unregister.
  • type Regsvr32 /u “C:\RelyonSoft\<Product_Name>\FindMe.dll”.
  • Click enter to register it.

Solution 3:

Install msxml4.msi

Download: msxml4.msi

Solution 4:

  • Open control panel, click Add\Remove Programs and uninstall the application. Clean the application path.
  • Re-Install the application And make sure that you are running the setup as Run as Administrator.