locked
Visual Studio 2005 - can not see in the browser! RRS feed

  • Question

  • User1656529216 posted
    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!!
    Wednesday, March 11, 2009 11:39 PM

Answers

  • User595841651 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 12, 2009 12:40 AM
  • User533502567 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 12, 2009 12:58 AM

All replies

  • User595841651 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 12, 2009 12:40 AM
  • User533502567 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 12, 2009 12:58 AM
  • User1656529216 posted

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

    Thursday, March 12, 2009 9:11 AM
  • User533502567 posted

    I am glad it helped you!!

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

    Thursday, March 12, 2009 3:35 PM
  • User-1572710060 posted

     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

    Saturday, March 14, 2009 7:59 PM
  • User956224122 posted

    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.

     

    Saturday, March 28, 2009 5:24 AM
  • User-1276702715 posted

    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.

     

    Tuesday, April 7, 2009 4:01 PM
  • User-763658848 posted

    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.

    Tuesday, April 14, 2009 7:40 AM
  • User1619528689 posted

    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!!

    Wednesday, April 15, 2009 11:52 AM
  • User-1243272925 posted

     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. 

    Wednesday, April 15, 2009 12:21 PM
  • User-890520901 posted

    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

    Sunday, April 19, 2009 9:30 AM
  • User533502567 posted

    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.

    Sunday, April 19, 2009 11:24 AM
  • User704878335 posted

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

    Saturday, May 2, 2009 2:54 PM
  • User-1870545306 posted

    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... 

    Tuesday, July 28, 2009 10:36 AM
  • User-1870545306 posted

    Hello everyone.... there is another thing related to this problem...

    e.g just replace "http://localhost:*****/directory/Default.aspx" with 

    http://NameOfPC/directory/Default.aspx  e.g (http://dinesh-pc/directory/Default.aspx)

    it gives another problem....

    It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

    Is there any Solution for this problem...Thanks...

    Friday, July 31, 2009 11:06 AM