After many days without running VirtualBox, i decided to do that today. but i got surprised that it wont run at all.
i tried all other websites to and VirtualBox Forums, but seems like no suggestion solution there works for me.
I get this error when i run my VM:
"Failed to create the VirtualBoxClient COM object.
The application will now terminate.
Callee RC: REGDB_E_CLASSNOTREG (0x80040154)"
i tried every trick in the book to get it fixed but nothing worked.
Can you please suggest what to do?
I thought to add this here, as I actually went through a similar situation again with this annoying VirtualBox critical error com object, and found this step-by-step tips very helpful:
Go to your Start Menu / or wherever your VirtualBox is installed.
Find the Oracle VirtualBox application in there.
Right click through it, and go to Properties.
Under the Compatibility tab you can find an option (check box) to run the program in compatibility mode.
Check that box if it’s not already, and you will be given options to choose which Windows version you should make it compatible with.
Pick one by one, from the most recent version (Windows 10) up to the oldest one, you will mostly find the VirtualBox you are running compatible with Windows 7 or Vista.
Apply & Save your changes and run VirtualBox.
- Hope these new edits might be helpful to anyone out there, these are a bit more generic and might/might not work in all cases so for very custom solutions and cases probably you’ll have to either go through the other solutions within this question page, or ask a related question specific to your case.
Thanks all for your answers above, unfortunately, none of your suggestions worked for me though they really guided me through to find the cause of the problem and how to solve it.
I’ve re-registered the service, but that only allowed the VirtualBox to run. And then when running a VM in VirtualBox it fails and crashes. I’ve checked the logs to find that the log stops after Loading the file comctl32.dll. that gave me the hint that some windows update messed up that file.
So, unfortunately, the only solution that worked for me is repairing windows 7. and it did work after that.
For anyone interested, you can as well restore to some backup point before installing the updates (that if you suspect any update to cause that).
And of course, the only way possible to avoid such trouble in the future is disabling Windows updates.
Note: I tried all different older & newer versions of Virtual Box, and every time I’ve encountered that issue so for sure it’s not a bug in VirtualBox. so no need to report that to VirtualBox forums.
I believe it’s windows Updates that messes it up. after I installed couple updates I regret it (unfortunately can’t roll it back).
but some of my friends found it useful to execute these commands:
Run your cmd and set the current directory ‘cd’ to the directory where VirtualBox is installed (usually
"C://Program Files/Oracle/VirtualBox") afterward execute the commands below:
though that didn’t solve my problem, hope it solves yours.
Re-installing VirtualBox Worked for me though as suggested above.
I believe you forgot to mention that the cmd must be run as Administrator, otherwise the service registration will fail.
Try to check your VirtualBox Logs probably they will have some helpful information for you.
For me - though the answers above saying that windows updates are causing the problem with VirtualBox- I only had to install windows updates to get the problem solved. and I believe that windows updates were the cause for the issue for me too.
@sparta that didn’t help either VirtualBox Logs were not that helpful at all!
Thanks this worked and as @jms suggested I used Admin privileges or else I got another error:
The module VBoxC.dll was loaded but the call to DLLRegisterServer failed with error code 0x80070005.
Note: I have been copying my VirtualBox around to other drives and didn’t want to keep reinstalling and this solution works fine every time.
Solution using Batch files:
Create the batch file then right click and Run as Administrator. Don’t forget to change to respective paths; I’m using the D: drive. I created one for installed and another for portable version, so two different batch files but you can combine them or just use one.
First Batch file:
CD D:\Program Files\Oracle\VirtualBox
Second Batch file:
CD D:\VM\Virtual Box Installation\Windows 10\Portable-VirtualBox\app64
Thank you dear Yassine , your solution worked like a treat for me without having to reinstall .
ياسين انا لديا حاسوب اسمه acer كان نظام الويندوز 7 حولته الى ويندوز 10 ولكن شغلت virtualbox ولم اقدر ان احل الخطا