In Visual Studio 2010 while deploying SharePoint solutions, sometime we see this error
“Error occurred in deployment step 'Recycle IIS Application Pool': Cannot connect to the SharePoint site. 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.”
This is because we forgot to mention the Site URL where we are going to deploy this solution. After specifying site URL, deployment went well.
Site URL will be your SharePoint site i.e. http://spdev:2000.
Just check whether current user has right on content database or not. for application to be able to be deployed the current user should be db owner in slq server database
ReplyDelete