SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have run VS 2010 as an administrator The user, which is running VS2010, have db_owner rights to the config, content, and central admin DBs of SP2010.

In my hostfile i have ::1

But still get this error VS Error 2010 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. 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.

Logfile 07/29/2012 14:11:15.52 vssphost4.exe (0x102C) 0x13A0 SharePoint Foundation General 8kh7 High 0x80070002There is no Web named "/sites/chapter2/SitePages/Home.aspx".

Can anybody help me?


share|improve this question
up vote 2 down vote accepted

It looks like you've specified as the Site URL in visual studio it should only be

To change this select your SharePoint project in "Solution Explorer" and it'll be in the Properties Window (F4)

share|improve this answer
Thank you Per Yes it was the ansver Once again you solved my problem – Newbie Jul 29 '12 at 16:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.