I was trying to register a dll using regsvr32 in command prompt when this error appeared. Then, I remembered that this error has something to do with security.
To solve this, log off the current user and log on as an Administrator. Finally, reregister your dll.
