Set Visual Studio's local IIS 7 debugable virtual path to /

In Visual Studio 2008 or 2010, the debugging option in local IIS is available on the Web tab of the web application project. I can select this type of debugging and specify the URL of the local site (for example, http: // localhost: 1234 / MyAppName ) and run the debugger and is happy as a clam.

My question is, is there ANY way to let me just use http: // localhost: 1234 instead of using the path of the subdirectory (virtual directory) this is not /

I would prefer to use IIS debugging to be more confident that we are developing in an environment closer to which we host, but we rely on routing rules that the requested pages relate to / MyAppName.

+4
source share
1 answer

If you go to IIS 7 and create a new website (not inside the standard one - IIS7 allows you to create several sites) - set the binding of this website to 1234 and set the root of this website for your application - this way you can use http: // localhost: 1234

you can continue to maintain the default website since you are not on the same port. When in Visual Studio - press alt + enter or f4 through a web application - go to the Internet tab and set the IIS path to the path just created.

hope this helps

Floor

+4
source

Source: https://habr.com/ru/post/1337225/


All Articles