Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Provider Load Error" when deploying SharePoint 2010 solution

Occasionally, seemingly randomly, about once a week, I get the following error in the output window when trying to deploy or retract a SharePoint 2010 solution from visual studio 10:

Error occurred in deployment step 'Recycle IIS Application Pool': Provider load failure

I have seen suggestions that include:

  • iisreset
  • restart visual studio

And I personally did not get that to work; I am always forced to:

  • Restart the machine.

Any help is appreciated.

like image 344
tenfour Avatar asked Dec 21 '10 21:12

tenfour


4 Answers

Just restart the WMI service on the machine. Worked for me.

like image 148
Tonio757 Avatar answered Nov 06 '22 22:11

Tonio757


This is a windows service-related issue. Either a service has been stopped, disabled due to error or is otherwise in a faulted state. If any of the following PowerShell commands fail check if any of the services have been disabled via the service manager.

restart-service sptimerv4
restart-service spusercodev4
restart-service spadminv4
restart-service TrustedInstaller
restart-service Winmgmt -force

or iisreset /noforce worked without requiring Visual Studio restart
like image 27
neuralsea Avatar answered Nov 06 '22 22:11

neuralsea


I have the same problem here. IISreset, restart VS2010 and restart SharePoint 2010 timer job did not help.

Restart the SharePoint 2010 User Code Host service resolved the issue for me. Try this powershell command.

restart-service SPUserCodeV4
like image 4
airmanx86 Avatar answered Nov 06 '22 22:11

airmanx86


  1. Closing VS 2010
  2. Restart the IIS from Command Prompt.
  3. Opening the VS 2010 Solution again. Solved the issue for me.
like image 3
Jay Soni Avatar answered Nov 06 '22 22:11

Jay Soni