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:
And I personally did not get that to work; I am always forced to:
Any help is appreciated.
Just restart the WMI service on the machine. Worked for me.
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With