- Home /
I keep getting these two compiler errors when I open Unity, does anyone have a fix for this?
These are the two errors:
Assertion failed on expression: 'SUCCEEDED(hr)' Assertion failed on expression: 'wmiOpened'
I have already searched countless forums for hours and I am just lost. I can't even open a new project without this popping up, and I have no other compiler errors on any of my scripts. Can anyone help me please?
These are not compile errors with your scripts, they are internal Unity assertions. I get the SUCCEEDED(hr) one a lot myself, and it doesn't seem to do any harm.
Try running your project and see if it runs, just to make sure your code is fine.
Answer by Hyro-Vitaly-Protago · Apr 05, 2020 at 09:50 PM
Hello !
Same thing happened to me recently. Try to follow this : https://www.thewindowsclub.com/how-to-repair-or-rebuild-the-wmi-repository-on-windows-10
For me, running this command line in administrator terminal resolve the problem : winmgmt /resetrepository
As a note, If you don't use a debugger, this errors will not do any harm.
Your answer
Follow this Question
Related Questions
Why isnt my code working? C# [NOOB] 1 Answer
Not booting past the project selection screen 0 Answers
Issues with script in unity 5.4.5p5 and VS 2017 1 Answer
My Unity Downloaded but wont open! 1 Answer
Unity will not open, failed to update manifest.json,Unity will not open because of a package error. 0 Answers