this site can’t be reachedlocalhost unexpectedly closed the connection. .net framework

Code Example - this site can’t be reachedlocalhost unexpectedly closed the connection. .net framework

                
                        Open this in your browser: chrome://net-internals/#hsts
Go to Delete domain security policies
Enter "localhost"
Restart browser