Ryu
Ryu

Reputation: 8749

SVN Branching and "IIS Url Already Mapped to Different Location"

I maintain several subversion development branches on my development pc and build box.

How do you guys deal with opening a solution on one branch and having IIS get configured to that location. Then opening the same solution / project in a different branch / location and get "IIS Url Already Mapped to Different Location" ?

Upvotes: 3

Views: 983

Answers (2)

user12345
user12345

Reputation: 145

Easy way, delete the file from the connections in the iis. Go back to visual studio and reload the file. Again, it will ask to create a virtual directory, press ok.

Upvotes: 0

Ryu
Ryu

Reputation: 8749

  1. I added localhost.branch to my host file
  2. In IIS I created a new website mapped to host header localhost.branch.
  3. I searched and replaced <IISUrl>http://localhost/myapp</IISUrl> with <IISUrl>http://localhost.branch/myapp</IISUrl> in all my csproj files in the branch.

Upvotes: 1

Related Questions