If I'm correct you should build (ctrl+shift+b) your project before debugging. This web server runs in the background on a port of choosing whenever you start in debug mode. You can close the task(s) (process bar next to your clock) if you need a new session or press F5 in VS.
You can avoid using the built in web server if you have IIS (Express) or something similar.
Go to RUN and type iis
depending on your OS it's already installed. Otherwise try to install it in Control Panel
> Programs or Features
> Turn windows features on or off
- add a website (site name, path, hostname)
- add to your host file
127.0.0.1 hostname
(c:\windows\system32\drivers\etc\hosts)
To debug your project in Visual Studio:
- open your website on your hostname in your favourite browser
- click on DEBUG
- click on ATTACH TO PROCESS
- find w3wp.exe
- hit ctrl+f5 in your browser to start debugging server code
Depending on how your solution/project is setup, you can publish your project files directly to IIS if you choose to publish to File System
. Right mouse click on your project and choose publish
. Set it up from there.
If your Visual Studio is up-to-date you can publish single files with alt+$+p
.
Hope it helps.