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


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.

Solution:

  1. 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.

    Install IIS 6 WMI Component

    Install IIS 6 WMI Compatibility

  2. Reset the IIS by using iisreset command.
  3. Deploy the solution again.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s