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.

An attempt to communicate with Azure DevOps failed because a token could not be retrieved. Please re-enter your credentials.


Problem: Few days ago I have alias my office account/email address and after that I can not login to Azure Devops/VSTS from Visual Studio 2017 & 2019. When I was trying to login it is asking my credentials several times but after that I got below error message
An attempt to communicate with Azure DevOps failed because a token could not be retrieved. Please re-enter your credentials.

Solution: I just deleted the .IdentityService folder from %LOCALAPPDATA%

Reference : https://stackoverflow.com/questions/52261545/how-do-i-connect-to-my-teamproject-after-i-changed-my-primary-account-alias