Unable to connect to the ASP.NET Development Server

Rate It (1)

Last post 10-07-2008 3:17 PM by Mikhail Arkhipov (MSFT). 19 replies.

Sort Posts:

  • Unable to connect to the ASP.NET Development Server

    12-03-2007, 9:34 PM
    Locked
    • Member
      65 point Member
    • Mosabama
    • Member since 07-07-2004, 11:18 AM
    • United Arab Emirates
    • Posts 14

    Hi,

    I downloaded VWD 2008 Express, and whenever I try to run any ASPX page to debug it or test it .. it gives me the following message in a messagebox:

    "Unable to connect to the ASP.NET Development Server"

    Anyone has an idea about it?

    by the way VWD2005 works fine!

    Mosabama
  • Re: Unable to connect to the ASP.NET Development Server

    02-09-2008, 4:15 AM
    Locked
    • Member
      134 point Member
    • marko
    • Member since 06-03-2005, 7:29 PM
    • Posts 124

    me too,look at the ports they are not the same,when they are same then I have that error that you write..I have that error with visual studio 2008,but visual studio 2005 works just fine...

    look at the ports they are not the same

     

    ASP.NET 3.5
    VISUAL STUDIO 2008 PRO
    MS SQL SERVER 2005
  • Re: Unable to connect to the ASP.NET Development Server

    02-09-2008, 1:38 PM
    Locked

    This thread may be useful http://forums.asp.net/t/1209387.aspx 

    Thanks

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

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Unable to connect to the ASP.NET Development Server

    02-09-2008, 2:51 PM
    Locked
    • Member
      134 point Member
    • marko
    • Member since 06-03-2005, 7:29 PM
    • Posts 124
    I have windows xp pro sp2 not vista operating system..
    ASP.NET 3.5
    VISUAL STUDIO 2008 PRO
    MS SQL SERVER 2005
  • Re: Unable to connect to the ASP.NET Development Server

    02-26-2008, 5:15 AM
    Locked

    Hi Mosabama,

    You probably have already solved as your post is about one year old but it may be useful to share my experience with other people who have the same issue, as there is no much on the web, and as someone said it is quite a rare issue. In my opinion there is no bug, problem or anything like that, simply a conflict.

    I have had the same problem and it was due to the fact I had Oracle® Database Express Edition 10g installed on my machine. Oracle once installed, gives you the possibility to access the XE database homepage directly via your browser. The url used to access the XE database homepage typically takes one of the following forms:
    http://localhost:8080/apex
    http://127.0.0.1:8080/apex

    As you can see your port 8080 (HTTP alternate port) is busy. I suspect that the standard Development Server for VWD 2008 for default works on the same port, differently for example from VS 2005 which random and automatically select one of the unassigned port for you. Well I could uninstall Oracle or stop its XE services on my machine but I needed the DB GUI for another project so I worked round and forced my project to use a Development Server which works on another port and I did this way:

    Step 1: Select the “Tools->External Tools” menu option in VS or Visual Web Developer.  This will allow you to configure and add new menu items to your Tools menu.

    Step 2: Click the “Add” button to add a new external tool menu item.  Name it “WebServer on Port 8010” (or anything else you want).

    Step 3: For the “Command” textbox setting enter this value: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.EXE (note: this points to the web-server that VS usually automatically runs).

    Step 4: For the “Arguments” textbox setting enter this value: /port:8010 /path:$(ProjectDir) (or any port you like)

    Step 5: Select the “Use Output Window” checkbox (this will prevent the command-shell window from popping up.

     

    Once you hit apply and ok you will now have a new menu item in your “Tools” menu called “WebServer on Port 8010”.  You can now select any web project in your solution and then choose this menu option to launch a web-server that has a root site on port 8010 (or whatever other port you want) for the project.

    You can then connect to this site in a browser by simply saying http://localhost:8010/.  All root based references will work fine.

     

    Step 6: The last step is to configure your web project to automatically reference this web-server when you run or debug a site instead of launching the built-in web-server itself.  To-do this, select your web-project in the solution explorer, right click and select “property pages”.  Select the “start options” setting on the left, and under server change the radio button value from the default (which is use built-in webserver) to instead be “Use custom server”.  Then set the Base URL value to be: http://localhost:8010/

     

    Obviously I don't know if this is the problem you had but definitely it is something similar, essentially the problem should be that the same port used by your Development Server is not available because it is already used by another web server.

     

    Regards

    Rosario Carbone

     

    P.S. I used 8010 in my example as this port normally is unassigned. 


     

  • Re: Unable to connect to the ASP.NET Development Server

    02-28-2008, 11:04 AM
    Locked
    • Member
      2 point Member
    • alphan
    • Member since 02-28-2008, 4:02 PM
    • Posts 1

    check your firewall settings maybe you forget to give permission

  • Re: Unable to connect to the ASP.NET Development Server

    02-29-2008, 10:31 AM
    Locked
    • Member
      9 point Member
    • natsr
    • Member since 03-14-2006, 1:08 PM
    • Posts 3

    Hi!

    I have Windows Vista Home Premium Edition.  I installed VWD 2008 and after creating a test.aspx, I tried to start the server.  I got this same error.  Horrible!!!  It is a killer.  On my machine it connects to port # 49716.  I tired spending several hours, googling and tried all options.  I could not get the server running.

     Any suggestions

    Thanks

  • Re: Unable to connect to the ASP.NET Development Server

    03-06-2008, 7:48 AM
    Locked
    • Member
      9 point Member
    • natsr
    • Member since 03-14-2006, 1:08 PM
    • Posts 3

    Hi!

     Finally I found the problem.  I edited the hosts file  which had an entry for local host like ::localhost.  I commented this line out and it started working.

  • Re: Unable to connect to the ASP.NET Development Server

    06-16-2008, 5:13 PM
    Locked
    • Member
      11 point Member
    • spankster
    • Member since 08-12-2003, 11:24 AM
    • Posts 12

    I had the same issue w VS2008. My solution wasnt found on the web. After using sysinternals process monitor I found the path VS was using to execute the server was incorrect. I guess MS didnt take into account my system was a 64bit system. So I had to move my DevServer folder to C:\Program Files\Common Files\microsoft shared\DevServer dir. In its present C:\Program Files (x86)\Common Files\microsoft shared\DevServer it was usless since MS was looking in the wrong location.

    I hope this saves some other poor sap the time it took me to figure it out.

    Stue

  • Re: Unable to connect to the ASP.NET Development Server

    06-17-2008, 11:45 AM
    Locked
    • Member
      134 point Member
    • marko
    • Member since 06-03-2005, 7:29 PM
    • Posts 124

    I solved my problem,I uninstalled my eset nod 32 security suite that was blocking him and now everything woks perfect...

    ASP.NET 3.5
    VISUAL STUDIO 2008 PRO
    MS SQL SERVER 2005
  • Re: Unable to connect to the ASP.NET Development Server

    06-26-2008, 2:56 AM
    Locked
    • Member
      2 point Member
    • mozaffar_amin
    • Member since 06-26-2008, 6:47 AM
    • Posts 1

     Hi.

    I had this problem too in my WinXP SP2. I had eset smart security and I have blocked my MSVS 2008 in its firewall's Interactive Mode.

    I Fixed it in this way [There is no need to uninstall your smart security). :

     1. Right Click on my ESET Icon in traybar.

     2. Choose Advance Setup menu.

     3. On the opened window on the left side choose Personal Firewall -> Rules and Zones.

     4. On the Right side in the Zone and Rule editor part Click  SETUP.

     5. Select Microsoft Visual Studio 2008 -> Deny Communication for devenv.exe

     6. Right Click on it and select EDIT

     7.  Set Direction to Both and Action to Allow.

     8. Click OK.

     

    Enjoy it. Yes Idea

  • Re: Unable to connect to the ASP.NET Development Server

    09-03-2008, 7:03 PM
    Locked
    • Member
      6 point Member
    • ritcoder
    • Member since 07-10-2008, 3:47 PM
    • Posts 12

    Hi,

     I'm having the same problem. Tried everything. Editing the hosts file, adding the webserver to a different port. Same thing.

    I just created an asp.net ajax application.

    I did nothing other that typing hello world on the default page

    -> Hit f5 -> Waited for the asp.net webserver icon to show in the tray

    -> waited for some 6 min and was greeted with a dialog - unable

     PS: If I double click on the webserver icon in the tray and click on the link, the page loads fine. The issue is getting vs to load it

     

    When I changed the port to 8010 using the guidance above I get the error message - The directory "XXX"  does not exist.

     

    I've checked my firewall settings and the webserver is not blocked.

  • Re: Unable to connect to the ASP.NET Development Server

    09-14-2008, 12:41 AM
    Locked
    • Member
      532 point Member
    • pure.krome
    • Member since 05-28-2006, 4:45 AM
    • Melbourne, Australia
    • Posts 348

    I've only just skimmed this thread .. but i can't believe no one noticed that the ports where different!!! 

     

    Hope that helps, Marko Bozan.

    -me-

    :: Never underestimate the predictability of stupidity ::
  • Re: Unable to connect to the ASP.NET Development Server

    09-15-2008, 1:12 PM
    Locked

    Marco, do you have VS 2008 SP1 installed?

    Thanks

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

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Unable to connect to the ASP.NET Development Server

    09-15-2008, 1:27 PM
    Locked

    Also, try setting a fixed, predefined port in project properties (properties window should have an option to switch off dynamic ports)

    Thanks

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

    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 2 (20 items) 1 2 Next >