'Error on vb6 "Run-Time Error -2147319779 Automation error Object library not Registered"

Hi guys i am having trouble using the FileSystemObject in Windows7 Home Premium'm getting an error message "Run-Time Error -2147319779 Automation error Object library not Registered" I used this code on windows xp sp3 and it worked good, I tried Registrer dll "c: \ windows \ system32 \ scrrun.dll" but is still showing the error, Thank you all!

Set Diretorio = FSO.GetFolder(DiretorioDinamico)'The error occurs here!
vb6


Solution 1:[1]

I've got the same issue with bad registration of some common components installed on syswow64, among them the mscomctl.ocx. After searching for and not found a solution, I derived one that solved the problem. So, the only way to solve was:

  1. Unregister the mscomctl.ocx (with elevated privilegies)
  2. Disabled the Internet Explorer (version 10 in my case)
  3. Reboot the system
  4. Register the mscomctl.ocx (Always elevated)
  5. Enabled IE10 again

It seems to be IE10 the problem. Since I disabled it, I could finally correctely register the common controls.

I hope (despite my bad english) help someone who is facing the same problem.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 angelatlarge