1

I am facing a big issue with Visual Studio when I am running my asp.net application. It's redirecting me to http://www.localhost.com and I am not able to debug as well as run the application. Earlier I got this issue and I had to format my system. Now I don't want to format my system can anybody suggest to me how I can solve this issue?

My current "hosts" file settings:

# #localhost name resolution is handled within DNS itself.
#   #127.0.0.1       http://localhost
#   #::1             localhost
Rob
  • 45,296
  • 24
  • 122
  • 150
Pankaj Mishra
  • 20,197
  • 16
  • 66
  • 103

1 Answers1

0
# #localhost name resolution is handled within DNS itself.
   127.0.0.1       http://localhost
   #::1             localhost

you should remove #, # means its a comment

Kimtho6
  • 6,154
  • 9
  • 40
  • 56