The page cannot be displayed?

Last post 07-04-2009 6:21 PM by amino20. 14 replies.

Sort Posts:

  • The page cannot be displayed?

    08-13-2008, 4:34 PM
    • Member
      1 point Member
    • matanm123
    • Member since 07-31-2008, 5:49 PM
    • Posts 12

    Hello,

    I cannot run asp.net web sites using the asp.net development server. It keeps giving me

    "The page cannot be displayed", but if I write 127.0.0.1 instead of localhost it's working.

    (Vista Ultimate, Visual Studio 2008 SP1)

    Any ideas?

  • Re: The page cannot be displayed?

    08-13-2008, 4:48 PM
    • Star
      8,650 point Star
    • DavidKiff
    • Member since 12-07-2006, 11:07 PM
    • Hertfordshire, UK
    • Posts 1,733

    Yes, Its probably down to your hosts file here:

    c:\windows\system32\drivers\etc

    Open the HOSTS file

    make sure this line exists

    127.0.0.1       localhost

  • Re: The page cannot be displayed?

    08-13-2008, 4:53 PM
    • Member
      1 point Member
    • matanm123
    • Member since 07-31-2008, 5:49 PM
    • Posts 12

    That's my HOSTS file:

    # Copyright (c) 1993-2006 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    #      102.54.94.97     rhino.acme.com          # source server
    #       38.25.63.10     x.acme.com              # x client host

    127.0.0.1       localhost
    ::1             localhost

    ?

  • Re: The page cannot be displayed?

    08-13-2008, 5:11 PM
    • Star
      8,650 point Star
    • DavidKiff
    • Member since 12-07-2006, 11:07 PM
    • Hertfordshire, UK
    • Posts 1,733

    Yeah thats fine.  That file is responsible for mapping localhost to 127.0.0.1.  Try flushing the dns?  in a command prompt type ipconfig /flushdns  (right click command prompt > run as administrator)

  • Re: The page cannot be displayed?

    08-13-2008, 5:18 PM
    • Member
      1 point Member
    • matanm123
    • Member since 07-31-2008, 5:49 PM
    • Posts 12

    Not working...

    Any other idea?

  • Re: The page cannot be displayed?

    08-13-2008, 5:21 PM
    • Star
      8,650 point Star
    • DavidKiff
    • Member since 12-07-2006, 11:07 PM
    • Hertfordshire, UK
    • Posts 1,733

    try cmd > nslookup localhost 

    That should return 127.0.0.1 if it doesnt then it cant resolve the name

  • Re: The page cannot be displayed?

    08-13-2008, 5:29 PM
    • Member
      1 point Member
    • matanm123
    • Member since 07-31-2008, 5:49 PM
    • Posts 12

    Server:  UnKnown
    Address:  192.168.1.1

    *** UnKnown can't find localhost: Non-existent domain

  • Re: The page cannot be displayed?

    08-13-2008, 5:37 PM
    • Star
      8,650 point Star
    • DavidKiff
    • Member since 12-07-2006, 11:07 PM
    • Hertfordshire, UK
    • Posts 1,733

    Yeah thats the problem!I  DNS cant resolve the name you have in the hosts file for some strange reason.  Not sure of a solution to be honest.. might be a google job? last resort:

    In IIS Manager, Can you check if the website is set to "All unassigned" or IP address? Try using "all unassigned" First, if that does not work - Try using IP address.

  • Re: The page cannot be displayed?

    08-13-2008, 5:44 PM
    • Member
      1 point Member
    • matanm123
    • Member since 07-31-2008, 5:49 PM
    • Posts 12

    But I am using the ASP.NET Development Server?

  • Re: The page cannot be displayed?

    08-14-2008, 9:12 AM
    • Star
      8,650 point Star
    • DavidKiff
    • Member since 12-07-2006, 11:07 PM
    • Hertfordshire, UK
    • Posts 1,733

    matanm123:
    But I am using the ASP.NET Development Server?

    I forgot about that! 

     Do you have a firewall or something like Norton Internet security that could be interfering with that?

  • Re: The page cannot be displayed?

    08-14-2008, 12:04 PM
    • Member
      1 point Member
    • matanm123
    • Member since 07-31-2008, 5:49 PM
    • Posts 12

    ESET Smart Security?

  • Re: The page cannot be displayed?

    08-14-2008, 12:38 PM
    Answer
    • Star
      8,650 point Star
    • DavidKiff
    • Member since 12-07-2006, 11:07 PM
    • Hertfordshire, UK
    • Posts 1,733

    May be, not sure what that is to be honest!  Try disabling things like that and the windows firewall.  When (if) it starts working then you will know what application is causing the problem!

  • Re: The page cannot be displayed?

    08-16-2008, 3:05 PM
    • Member
      1 point Member
    • matanm123
    • Member since 07-31-2008, 5:49 PM
    • Posts 12

    Yup, that was ESET.

    Thank you very much for your help! Big Smile

  • Re: The page cannot be displayed?

    10-08-2008, 7:02 AM
    • Participant
      884 point Participant
    • murthysrn
    • Member since 12-15-2006, 5:22 AM
    • Bangalore
    • Posts 312

    Hi David,

    I am also getting the same Problem...! According to you...My application may be contain some Harmful code?

    How can found Harmful code. 

     

    Thanks & Regards,
    Murthy.
  • Re: The page cannot be displayed?

    07-04-2009, 6:21 PM
    • Member
      2 point Member
    • amino20
    • Member since 07-04-2009, 6:19 PM
    • Posts 1

    man...THANKS!

    u dunno how much u helped...i've got a project to present in 36 hours and this problem sucks and i couldnt even start working

    never heard abt this host file config

    God bless u

Page 1 of 1 (15 items)