VS 2012 Automatically Update IIS Path at Startup

My employer recently updated us from VS 2010 to VS 2012. It was great, but there is one minor annoyance that I hope someone here can help. In VS 2010, when I switched branches, he asked me if I want to update IIS paths. Something in the lines "path for the port:" blah "indicates here. Do you want to change it?" VS 2012 does not ask. He just changes it. I can't seem to find a setting that prevents this behavior, so I hope someone else has it. Searching IIS on any site leads to too many results for sifting, especially considering that only one (topic from this forum, in fact) of the first thirty or so had anything to do with IIS and Visual Studio updating paths (unfortunately related to this issue). Any help would be greatly appreciated.

EDIT: I found the exact message. It reads: “Currently the web project“ ... ”is configured to use the URL“ ... ". The web server has this URL mapped to another folder" ... ". You want to redirect this URL to specify this web project folder? "

+7
source share
2 answers

I took this question on the MSDN forums. I got an answer, so I just associate this question with an MSDN question.

MSDN forum question

Request for visualstudio.uservoice.com

+3
source

Only my work for this problem:

  • In IIS Manager, I created sites for each branch, then I configured them using different ports.

  • Open each of the web projects in VS2012, then set the properties as:

    • Start Action = Do not open the page. Wait for a request from an external application.

    • Servers = Local IIS

    • Project URL : http: // localhost: [PORT for this site in IIS]

This way, VS2012 will not change the web port and path. I can still debug different branches.

Does it help you?

+1
source

All Articles