I got this error and tried following steps.
- Deleted .vs hidden folder,
- started w3svc server,
- Clearing registry entries,
- Changing Port number for this site.
Nothing worked . Using Visual Studio 2019 in OS Windows 8.1 with an update, IIS Server 6.2. [Chrome Browser Output][1] [1]: https://i.stack.imgur.com/BNHQR.png. [Visual Studio output][2] [2]: https://i.stack.imgur.com/TtVOA.png