unable to connect to visual studio's localhost web server

Last post 04-17-2008 8:51 AM by issanasr. 9 replies.

Sort Posts:

  • unable to connect to visual studio's localhost web server

    09-20-2007, 9:32 PM
    • Loading...
    • one2004
    • Joined on 09-21-2007, 1:24 AM
    • Posts 8

    Hello,

    I created a simple web page in Microsoft Visual Web Developer 2005 Express Edition. 

    Then I pressed Ctrl/F5.

    Build succeeded.

    Next I reseived an error message

    "unable to connect to visual studio's localhost web server".

    Does anybody know why?

     

  • Re: unable to connect to visual studio's localhost web server

    09-21-2007, 4:51 AM
    • Loading...
    • ca8msm
    • Joined on 11-29-2005, 3:57 PM
    • http://aspnetlibrary.com
    • Posts 2,108

    Mark,
    Join me at the new IT Community of the 21st Century: http://lessthandot.com

    Please remember to click "Mark as Answer" on this post if it helped you
  • Re: unable to connect to visual studio's localhost web server

    09-21-2007, 10:38 AM
    • Loading...
    • one2004
    • Joined on 09-21-2007, 1:24 AM
    • Posts 8

    Thank you, ca8msm !

     

  • Re: unable to connect to visual studio's localhost web server

    09-23-2007, 1:02 PM
    • Loading...
    • one2004
    • Joined on 09-21-2007, 1:24 AM
    • Posts 8

    1) I reinstalled Microsoft .Net 2.0 and Visual Web Developer 2005 Express Edition.

       It didn't help.

    2)I did the following:

       in the command prompt I typed:

    C:\>cd WINDOWS\Microsoft.NET\Framework\v2.0.50727

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis –i 
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>iisreset

    It worked! The message "unable to connect to.." is gone!

    P.S. Now, I'm not so sure.

    It worked on very simple site, but when I tried to run a Personal Web Site, created by Visual Web Developer, it gave me the same message "unable to connect...". And, by the way, you have to do the two steps (aspnet_regiis -i, and iisreset) every time before starting Visual Web Developer.

     

     

     

  • Re: unable to connect to visual studio's localhost web server

    01-23-2008, 8:33 AM
    • Loading...
    • one2004
    • Joined on 09-21-2007, 1:24 AM
    • Posts 8

    It worked for short time, but now the message ("unable to connect...") is back. Unfortunately, nobody knows what to do. I use IIS instead (puting my sites into localhost directory) but  I still don't know what is the matter with that message. I wanted to uninstall .NET Framework and install it from scratch, but Windows didn't let me uninstall it.

    Perhaps my WebDev.WebServer.exe  is corrupted?

    Is it possible that somebody send me an uncorrupted WebDev.WebServer.exe in email, so I could use it?

    one2004

  • Re: unable to connect to visual studio's localhost web server

    04-08-2008, 12:41 AM
    • Loading...
    • cybernaresh
    • Joined on 10-14-2007, 11:23 PM
    • Posts 4

     ************************************************** Unable to connect to Visual Studio's Localhost Web Server ************************************************** Here is the solution below. Check it. ************************************************** The Visual Studio's localhost Web Server (or) Default Web Server is the file "WebDev.WebServer.exe". You can find it in the folder "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727" for Windows xp/2000/2003 (OR) in "C:\WINNT\Microsoft.NET\Framework\v2.0.50727" for Windows NT Servers.

    Check out whether this file exists in your framework folder to verify whether it was accidentally deleted. If it is not there, try to get a copy of this file from any another system which contains vs2005 installed and paste it the frameworks folder of your system.

    Keep a backup of this file "WebDev.WebServer.exe".

    Note: "WebDev.WebServer.exe" does not come with dotnet framework but with Visual Web Developer which is part of Visual Studio. Since it is in the framework's folder, dont' think that it came with dotnet framework file "dotnetfx20.exe".

    If not solved.
    Try to end any previous instances of WebDev.WebServer.exe still running using Task Manager.
    (or)
    Host your web application manually using WebDev.WebServer.exe. Type WebDev.WebServer.exe/? in Command Prompt (before doing this you to change the directory to framework folder or add the framework folder to PATH in console.
    The syntax is : WebDev.WebServer.EXE /path:$rpath /port:$port /vpath:$vpath
    Where path is for physical path location of your application's root directory, port is the port number your application uses, you can assign any free or unused port number and vpath is the virtual directory name for your application's root directory
    Example: WebDev.WebServer.exe /path:f:\myprojects\webapps\website1 /port:1036 /vpath:website1 (physical path and virtual path need not be same as in this case 'website1')
    Now you will see the icon in the tray which you usually see when you run a webapplication from visual studio ide.
    and now you can accesss your application from any browser by simply typing for the above example as
    http://localhost:1036/website1
    Note: Here instead of localhost you can use your computer fullname.
    (or)
    Try this: In the frame work folder 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727' Run the following files..
    'aspnet_regiis -i' : to register asp.net with Internet Information Server (IIS) and
    'iisreset' : to restart IIS

    If the problem still exists try to call me om my mobile.

    Regards,
    Sriram Naresh
    cybernaresh@yahoo.com
    cybernaresh@hotmail.com
    +91-9989697948

  • Re: unable to connect to visual studio's localhost web server

    04-11-2008, 11:07 AM
    • Loading...
    • one2004
    • Joined on 09-21-2007, 1:24 AM
    • Posts 8

    Mr.Naresh! Thanks for answering my question. I've tryed everything you suggested, but it didn't help. When I tryed to run aspnet_regiis -i,

    it gave 3 failure messages. I've  sent you an email where I described everything I did and attached two files: 1)my WebDev.WebServer.exe(probably corrupted), and 2)screenshots of the error messages I received. Is it possible that you send me an email with your copy of WebDev.WebServer.exe attached, so I could try to run it? I would appreciate if you do. Thanks again. Michael.

     

  • Re: unable to connect to visual studio's localhost web server

    04-15-2008, 6:08 PM
    Thanks

    ------------------------------------------------------------

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: unable to connect to visual studio's localhost web server

    04-17-2008, 8:35 AM
    • Loading...
    • one2004
    • Joined on 09-21-2007, 1:24 AM
    • Posts 8

    No, it is not my case. 

    I've checked my C:/Windows/System32/DRIVERS/ETC/HOSTS file.

    The "127.0.0.1       localhost" record is there.

    Thank you.

    Michael

     

  • Re: unable to connect to visual studio's localhost web server

    04-17-2008, 8:51 AM
    • Loading...
    • issanasr
    • Joined on 04-17-2008, 8:19 AM
    • Posts 1

    Hi,guys i ahve the same problem and i did everything but it still there..

    What i can do?

    Please help...

Page 1 of 1 (10 items)