I have encountered strange problem on my dev VM.
Background: Having my VM open (VM Player), I put host computer into sleep mode, then I woke it and put into sleep mode for second time. After waking it up second time, it was slow as hell so I decided to restart it. But since it's responsivenes was close to 0, I used VMware "Power off" option. After rebooting VM, everything seems ok, but in VS 2010 I'm getting:
Error occurred in deployment step 'Recycle IIS Application Pool': Cannot connect to the SharePoint site: https://xxx.yyy.local. 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 double checked site URL, and user account I'm using:
- is local computer admin,
- is in farm administrators group,
- has
db_ownerrole on content database where I deploy, - has
sysadminfixed role on mssql server
I can access site and web application where I try to deploy using browser, however I can't add this site (and any other site) using SharePoint Connections in Server Explorer - it says: The site is not available.
Trying to use powershell cmdlets like Get-SPSite or Get-SPWeb on sites where I'm deploying also finishes with error that site cannot be found.
Cleaning solution, restarting VS, restarting VM doesn't help. Have you ever encountered similar issue and managed to solve it?