For some reason I started running into this error when I was trying to deploy a sharepoint webpart from visual studio. It just started happening out of the blue.
First I just rebooted the server and it deployed fine but when I made some changes to the code and tried to deploy it, the error came up again.
I found the answer here:http://social.msdn.microsoft.com/Forums/en/vsreportcontrols/thread/26accc30-9cfb-4d86-9c27-780f51929ecb
I had to add the ASP.NET account to each section.
Run dcomcnfg to bring up Component Services window.
Expand Component Services > Computers > My Computer > DCOM Config
Scroll down list, right click Windows Management and Instrumentation, and select properties. A 5 tabbed window named Windows Management and Instrumentation Properties should be displayed.
Select the Security tab, then select radio buttons which activate the Edit... buttons.
Select the appropriate location and add the ASPNET account.
Reboot.