I have a SharePoint 2016 On-premises farm. I got bellow error while I am deploying a SharePoint 2016 solution with Visual Studio 2017

Error occurred in deployment step ‘Recycle IIS Application Pool’: Remote SharePoint site connections are not supported


Edit the hosts file located at ‘C:\Windows\System32\drivers\etc’ folder
Place site collections URL pointing at Lets say my SharePoint site collection URL is

Save and Close. Then retry to deploy again.

Leave a Reply

Your email address will not be published. Required fields are marked *