Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Visual Studio doesn't resolve localhost

Visual Studio doesn't resolve localhost

Scheduled Pinned Locked Moved Visual Studio
visual-studiocsharphelpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wilf57
    wrote on last edited by
    #1

    When I want to run my project in VS2005 choosing File/Open in Browser it says: website cannot be opened When I replace the word localhost in the address line by 127.0.0.1 everything works fine. In the file .../system32/drivers/etc/hosts tere is an entry: 127.0.0.1 localhost so where visual studio is looking for the name resolve? Reinstall VS doesnt help. Thanks for any suggestions Wilfried.

    M J 2 Replies Last reply
    0
    • W wilf57

      When I want to run my project in VS2005 choosing File/Open in Browser it says: website cannot be opened When I replace the word localhost in the address line by 127.0.0.1 everything works fine. In the file .../system32/drivers/etc/hosts tere is an entry: 127.0.0.1 localhost so where visual studio is looking for the name resolve? Reinstall VS doesnt help. Thanks for any suggestions Wilfried.

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      This is just a wild guess, but do you have the "Enable LMHOSTS Lookup" setting turned on in the network TCP/IP settings? Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      W 1 Reply Last reply
      0
      • M Mark Salsbery

        This is just a wild guess, but do you have the "Enable LMHOSTS Lookup" setting turned on in the network TCP/IP settings? Mark

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        W Offline
        W Offline
        wilf57
        wrote on last edited by
        #3

        Yes it was on. But turning it on or off doesn't make any effect. when i put it on and make an entry '127.0.0.1 localhost' in the file lmhosts.sam and make import lmhosts with this file in the network connections it doesn't help either. Should it be on or off? When its searching the website it shows in the status line at the bottom of the explorer: Connecting to site [::1] --- but cannot connect This problem occurs on my laptop. Its the same installation like on my PC, where there is no such problem. The only difference is, that there is an English windows xp on the laptop, while a German one on the PC ;-) thanks for ur try. Wilfried

        W 1 Reply Last reply
        0
        • W wilf57

          Yes it was on. But turning it on or off doesn't make any effect. when i put it on and make an entry '127.0.0.1 localhost' in the file lmhosts.sam and make import lmhosts with this file in the network connections it doesn't help either. Should it be on or off? When its searching the website it shows in the status line at the bottom of the explorer: Connecting to site [::1] --- but cannot connect This problem occurs on my laptop. Its the same installation like on my PC, where there is no such problem. The only difference is, that there is an English windows xp on the laptop, while a German one on the PC ;-) thanks for ur try. Wilfried

          W Offline
          W Offline
          wilf57
          wrote on last edited by
          #4

          Aha and 'ping localhost' works on the laptop. Wilfried

          1 Reply Last reply
          0
          • W wilf57

            When I want to run my project in VS2005 choosing File/Open in Browser it says: website cannot be opened When I replace the word localhost in the address line by 127.0.0.1 everything works fine. In the file .../system32/drivers/etc/hosts tere is an entry: 127.0.0.1 localhost so where visual studio is looking for the name resolve? Reinstall VS doesnt help. Thanks for any suggestions Wilfried.

            J Offline
            J Offline
            Jordanwb
            wrote on last edited by
            #5

            How come you're trying to open your project by using your loopback address? It would be on the hard drive. When you click Run it would start a server on a specific port then run off of that port.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups