SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to test developing for SharePoint 2010 on a Windows 7 machine.

I created a new empty SharePoint project, added a web part and deployed, which worked fine.

When I try to run or deploy a second time I get the above error message.

Anyone know how to fix this problem?

share|improve this question
up vote 5 down vote accepted

I figured it out!

The same issue has been plaguing me for some time. Apparently, VS 2010 uses WMI to control IIS during a redeploy. Without the features enabled, I got the same "Invalid namespace" error.

The solution was to: open the Turn Windows on or off menu in the Control Panel (under Programs), and enable WMI compatibility. The path to the feature is:

Internet Information Services -> Web Management Tools -> IIS 6 Management Compatibility -> IIS 6 WMI Compatibility

share|improve this answer

Had the same issue on a Windows Vista x64 environment with Visual Studio 2010 RTM and SharePoint Foundation 2010 RTM.

Need to start the SharePoint Administration service (set to manual startup by default).

Go to:

  1. Start
  2. Run
  3. Services.msc
  4. SharePoint 2010 Administration
  5. Right click -> Start

This solved the issue for me.

share|improve this answer

Usually this problem comes when the server is too busy and not getting enough time to retract the Solution package file. What RaM are you using? Try to close all other application and deploy. If you still have problems let me know. I have solved the problem the same way.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.