Error occurred in deployment step ‘Recycle IIS Application Pool’: Cannot connect to the SharePoint site: http://localhost/. 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 tError occurred in deployment step ‘Recycle IIS Application Pool’: The local SharePoint server is not available. Check that the server is running and connected to the SharePoint farm.
或者
Error occurred in deployment step ‘Recycle IIS Application Pool’: Cannot connect to the SharePoint site: http://localhost/. 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
2.打开SQL Management Studio, 确认一下myUserName是否作为以下数据库的DBOwner:
SharePoint_Config
SharePoint_AdminContent_[guid]
或者
Error occurred in deployment step ‘Recycle IIS Application Pool’: Cannot connect to the SharePoint site: http://localhost/. 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
这两个错误是在VS2010部署SharePoint 2010 solution时常见的两个错,可以通过以下方法解决:
2.打开SQL Management Studio, 确认一下myUserName是否作为以下数据库的DBOwner:
SharePoint_Config
SharePoint_AdminContent_[guid]
SharePoint Site Content DB