Visual Studio 2010 and the Disappearing SharePoint Site URL

Yet another post from Captain Obvious …

When deploying a SharePoint solution from Visual Studio 2010 you get 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.

Well, as the second sentence clearly states you have to fill in the Site URL property.

And it’s not really surprising that a co-worker will receive this very error after getting your solution from TFS for the first time. As Microsoft decided to let you only deploy to a local SharePoint instance from Visual Studio the Site URL property will be different for every developer. Therefore it isn’t stored in the .csproj file but in the .csproj.user file which obviously isn’t meant to go into TFS. So everybody starts out with a blank value for this property–which is again covered by the helpful error message.

So the only question left is: who reads error messages? 🙂

This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

3 Responses to Visual Studio 2010 and the Disappearing SharePoint Site URL

  1. Matthias says:

    Sehr erfrischender Blog 🙂

  2. Matthew Carter says:

    Thank you, I had to close out of the project and open it up but this worked! Thank you.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s