Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

4 Answers 4

up vote 3 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

when i deploy my sp project i found this problem Error 66 Error occurred in deployment step 'Recycle IIS Application Pool': Remote SharePoint site connections are not supported. Parameter name: project0 0 Components

share|improve this answer
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. –  Waqas Sarwar MCSE Dec 2 '14 at 21:09

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.