This SharePoint tutorial, we will discuss how to fix error, Error occurred in deployment step Recycle IIS Application Pool. Cannot connect to the SharePoint Site Make sure that this is a valid URL and the SharePoint site is running on the local computer.
Recently while working with visual web part development using visual studio 2017 for SharePoint 2016 site. But while trying to deploy visual webpart (Right-click on the project -> Deploy), it gave an error as Error occurred in deployment step Recycle IIS Application Pool. Cannot connect to the SharePoint site: http://SiteURL. Make sure that this is a valid URL and the SharePoint site is running on the local computer.
If you moved this project to a new computer or if the URL of the SharePoint site has changed since you created the project. Update the Site URL property of the project.
The full error looks like below:
Error occurred in deployment step Recycle IIS Application Pool
We were developing a visual web part in SharePoint 2016 using visual studio 2015/2017. When we first create the web part we gave the site URL. and the URL was changed. So we have to change the site URL which we have given while creating the solution.
Right click on the Project -> Press F4.
Then change the Site URL property like below:
After this, you can deploy the solution to SharePoint 2016.
Read some SharePoint tutorials:
- Linq to SharePoint 2013
- Upload file to SharePoint 2016 document library with metadata programmatically using file upload control (Visual Web Part + Server Object Model)
- $Resources:core,Import ErrorMessage error while adding visual web part in SharePoint 2016
- SharePoint 2016/2013 event receiver example using Visual studio 2017
- [Solved] SharePoint Server relative urls must start with SPWeb.ServerRelativeUrl csom
- The file you imported is not valid. Verify that the file is a web part description file (*.webpart or *.dwp) and that it contains well-formed XML SharePoint Error
- Add SharePoint 2016/2013 List/Library Columns to view programmatically using server object model in Visual Studio 2017
- Create Site Columns programmatically in SharePoint 2016/2013 using Server Object Model in Visual Studio 2017
- Create a Document Library with Columns programmatically in SharePoint 2016/2013 using Visual Studio 2017
I hope this SharePoint tutorial helps to fix error, Error occurred in deployment step Recycle IIS Application Pool. Cannot connect to the SharePoint Site Make sure that this is a valid URL and the SharePoint site is running on the local computer.
I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site EnjoySharePoint.com