Visual Studio 2005 - can not see in the browser!

Last post 07-31-2009 11:06 AM by dineshjgd. 15 replies.

Sort Posts:

  • Visual Studio 2005 - can not see in the browser!

    03-11-2009, 11:39 PM
    • Member
      25 point Member
    • nnorman
    • Member since 01-30-2008, 4:09 AM
    • Posts 59
    Hi,
     
    I have a very frustrating problem with Visual Studio 2005.  All of a sudden the web server part doesn't work.
    (I don't have a separate web server) In the development environment I used to right click in files and select "view in browser". But now it says IE can not display the page. (tried with Firefox & Chrome..same thing) 
    (http://localhost:64283/example/Default.aspx). I reinstalled the the Visual Studio with SP1 and Vista compatibility packs but the problem doesn't go away.
     
    Any help would be appreciated!!


    Filed under:
  • Re: Visual Studio 2005 - can not see in the browser!

    03-12-2009, 12:40 AM
    Answer
    • All-Star
      48,869 point All-Star
    • Curt_C
    • Member since 07-23-2003, 8:27 PM
    • Plover, WI - USA
    • Posts 5,320
    • Moderator
      TrustedFriends-MVPs

    Hit F5 and run the app. That's the only way I ever do it. The Show In Browser has never worked right for compiled pages, expecially complex work.

    Blatant Self-Promotion: Book Released - ASP.Net CMS Development
  • Re: Visual Studio 2005 - can not see in the browser!

    03-12-2009, 12:58 AM
    Answer
    • All-Star
      22,974 point All-Star
    • budugu
    • Member since 01-12-2006, 2:15 PM
    • North Carolina
    • Posts 3,459

    nnorman:
    All of a sudden the web server part doesn't work

    I assume you are getting this problem after installing this week's updates to Vista.  some how it messed up VS developer server settings. Same thing happned at my end. Try this ...

    Go to c:\Windows\System32\drivers\etc\ and open the file named hosts with a text editor and search for the line containing "::1"  and change "::1" to ":::1" by adding an extra ":"

    It solved the problem on one of my development machine.

    Vijay Kodali || My Blog


    "Don't be afraid to be wrong; otherwise you'll never be right."
  • Re: Visual Studio 2005 - can not see in the browser!

    03-12-2009, 9:11 AM
    • Member
      25 point Member
    • nnorman
    • Member since 01-30-2008, 4:09 AM
    • Posts 59

    Thanks so much! Yes, Vista updates did this mess. Your solution worked perfect for me!



  • Re: Visual Studio 2005 - can not see in the browser!

    03-12-2009, 3:35 PM
    • All-Star
      22,974 point All-Star
    • budugu
    • Member since 01-12-2006, 2:15 PM
    • North Carolina
    • Posts 3,459

    I am glad it helped you!!

    I seen same problem reported in several forums. So I made blog post on it.

    Vijay Kodali || My Blog


    "Don't be afraid to be wrong; otherwise you'll never be right."
  • Re: Visual Studio 2005 - can not see in the browser!

    03-14-2009, 7:59 PM
    • Member
      51 point Member
    • diazmayo
    • Member since 10-20-2007, 2:02 AM
    • Posts 116

     I am trying to change '::1' to ':::1' and it won't let me. I am the admin and I am currently under admin... Im frustrated at this point

  • Re: Visual Studio 2005 - can not see in the browser!

    03-28-2009, 5:24 AM
    • Member
      2 point Member
    • komachi
    • Member since 03-28-2009, 9:16 AM
    • Posts 1

    Are u receiving these error msg:

    1. Access to C:\Windows\System32\drivers\etc\ hosts was denied

    2. Cannot create the C:\Windows\System32\drivers\etc\hosts file.
    Make sure that the path and file name are correct.

    If yes, then run notepad as administrator first, then open the hosts file, modify it and save.

     

  • Re: Visual Studio 2005 - can not see in the browser!

    04-07-2009, 4:01 PM
    • Member
      5 point Member
    • akanetsamson
    • Member since 02-15-2009, 4:22 PM
    • Posts 59

    wow thanx, it also worked for me, i was really frustrated. but seriously, why will microsoft decide to do this without any notification? we just downloaded updates and are just getting unknown problems.

    wel, thank God its over now.

    Thanx alot.

     

  • Re: Visual Studio 2005 - can not see in the browser!

    04-14-2009, 7:40 AM
    • Member
      2 point Member
    • MAT1C
    • Member since 04-14-2009, 11:32 AM
    • Posts 1

    Same thing happened to me and I solved it by adding an extra ":" in a hosts file. But now the same thing happend again today and I don't konw what to do now. If someone could help me it would be really appreciated.

  • Re: Visual Studio 2005 - can not see in the browser!

    04-15-2009, 11:52 AM
    • Member
      2 point Member
    • mmcasp
    • Member since 04-15-2009, 3:48 PM
    • Posts 1

    I has the same problem in Visual Studio 2008. Edited the hosts file by inserting the extra : and it worked fine then. Appreciate the fix. Thanks!!

  • Re: Visual Studio 2005 - can not see in the browser!

    04-15-2009, 12:21 PM
    • Member
      252 point Member
    • lahorya
    • Member since 03-31-2007, 9:11 PM
    • Posts 231

     Hi budugu,

                    what about Windows XP?  I am using VS 2008.  when hit F5 it opens the web browser and starts a Development server but the problem is in the URL of the web browser it does not put the right port number.  For example if I hover the mouse over the Development server in task bar it says port 3738 but the browser shows http://localhost:3736/....  always it shows a difference of two numbers. i am having this problem since last two weeks any idea why its happening.  is it a part of the same problem?  Thanks in advance. 

  • Re: Visual Studio 2005 - can not see in the browser!

    04-19-2009, 9:30 AM
    • Member
      4 point Member
    • JuanDiego
    • Member since 04-19-2009, 11:23 AM
    • Posts 7

    I am getting this error as well. Have VWD 2008 and Vista.

     What do you mean running the notepad as administrator? I am the administrator and i'm getting this error. how should i open notepad then?

    thanks in advance for your help!!

    JD

  • Re: Visual Studio 2005 - can not see in the browser!

    04-19-2009, 11:24 AM
    • All-Star
      22,974 point All-Star
    • budugu
    • Member since 01-12-2006, 2:15 PM
    • North Carolina
    • Posts 3,459

    JuanDiego:
    I am the administrator and i'm getting this error. how should i open notepad then?

    Go to c:\Windows\System32\drivers\etc\ and open the file named hosts with a text editor and search for the line containing "::1"  and change "::1" to ":::1" by adding an extra ":"

    Ps: Make sure you have write permissions on that folder.  Right click on that folder and select properties and go "Security" tab.

    Vijay Kodali || My Blog


    "Don't be afraid to be wrong; otherwise you'll never be right."
  • Re: Visual Studio 2005 - can not see in the browser!

    05-02-2009, 2:54 PM
    • Member
      2 point Member
    • mcilliers
    • Member since 05-02-2009, 5:58 PM
    • Posts 4

    Wow. Yes it realy worked. I added the : and my problems are gone. Thank you.

  • Re: Visual Studio 2005 - can not see in the browser!

    07-28-2009, 10:36 AM
    • Member
      6 point Member
    • dineshjgd
    • Member since 11-11-2008, 2:35 AM
    • Posts 3

    Hello Budugu.... I modified that file it worked fine....for few days and again having :::1 in hosts file, same problem occuring again... so is there any solution for this sort of problem... Thanks in advance... 

Page 1 of 2 (16 items) 1 2 Next >