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 a SharePoint solution which I developed in a server named HostA, and was deployed in the same server at the url, http://HostA:2100/ASD

Later I moved the entire solution to a new server HostB, and i restored the entire site. And I got my site working at the url http://HostB:2100/ASD. I did change the url properties for the project before deploying the solution.

However whenever i click debug, the new window opened will refer the old url, that is http://HostA:2100/ASD. How can I change that to reference the new Url, that is http://HostB:2100/ASD.

share|improve this question
Did you clean and re-build the solution and project, before deploying? Also, this information is saved in a file called [ProjectName].csproj.user/[ProjectName].vbproj.user - make sure it has the correct URL – Arsalan Adam Khatri Sep 30 '12 at 7:01
Thanks for the comment, I am not sure whether I clean it before deploying... Let me have a go at it. Again its a c# project, where can I find that file? – Jithu Sep 30 '12 at 7:08
Suppose you have project in E drive, the file should be here: E:\visual studio 2010\Projects\ [SolutionName]\ [ProjectName]\ [ProjectName].csproj.user – Arsalan Adam Khatri Sep 30 '12 at 7:22
Thanks, however I believe i got the right url over there too... <SharePointSiteUrl>http://HostB:2100/ASD/</SharePointSiteUrl> – Jithu Sep 30 '12 at 8:50
cool, then just clean the solution and re-deploy it... it should work fine - because it just keeps the target site URL in that place only! – Arsalan Adam Khatri Sep 30 '12 at 12:25

Your Answer


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

Browse other questions tagged or ask your own question.