Background : Today I was trying to deploy a SharePoint solution on SharePoint 2016 using Visual Studio 2017 and got below error:
Error occurred in deployment step 'Recycle IIS Application Pool': Provider load failure
Cause: In my case IIS 6 WMI Compatibility components are missing/not installed on the server. My server version is Windows Server 2016 Standard.
- Go to Start button > Server Manager > Manage > Add Roles and Features > Next > Web Server (IIS) > Expand the Management Tools > Check the box of IIS 6 WMI Compatibility > Next > Install.
- Reset the IIS by using iisreset command.
- Deploy the solution again.