visual studio force iis to run on debug code example
Example: Run project in visual studio with iis express
In the solution folder view:
- Right click on your website/ web app
- Click on "Set as Startup Project"
- Configure as needed (IIS Local as default)