In case anyone came here as I did while debugging an ASP.NET Web Forms application, what worked for me was properly configuring the project properties Web tab, to start the application on the same URL as the project URL. You can either check the Start URL option and duplicate the project URL in that field, or as I did check Specific Page and enter a forward slash in the field.