سؤال

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?

هل كانت مفيدة؟

المحلول

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 Features 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

enter image description here

نصائح أخرى

Same problem with VS2019 and Windows Server 2019.

In modern Windows here's the solution:

enter image description here

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.

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top