I created a Visual Studio 2010 SharePoint Project. When i tried to build and deploy the solution from Visual Studio, i got the following error :-
Error occurred in deployment step ‘Recycle IIS Application Pool’: Cannot connect to the SharePoint site: http://samplesite/. 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.
I realized the i’m not the administrator of the box and also did not have the access to the SharePoint content db. I fixed this issue by doing the following :-
1. Added myself as the administrator
2.Added myself to SharePoint Farm Admin Group
3. Provided DB Owner access to SharePoint Content DB
Pingback: Recycle IIS Application Pool: Cannot connect to the SharePoint site - My experiments with SharePoint, Azure and .NET using Visual Studio