Error:
Retrieving the COM class factory for component with CLSID.
Failed due to the following error: 80080005.
Snapshot:
Workaround1:
In VS – project properties – in the Build tab – platform target =X86
Workaround2:
- Open Command prompt as Administrator
- type Regsvr32 /u vbscript.DLL.
- Click enter to unregister.
- type Regsvr32 vbscript.DLL.
- Click enter to register it.