p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 3.5 Basics (http://p2p.wrox.com/forumdisplay.php?f=351)
-   -   unable to connect to asp.net development server (http://p2p.wrox.com/showthread.php?t=70497)

Komila September 9th, 2008 11:40 PM

unable to connect to asp.net development server
 
hello frnds,
I am facing a problem in my local pc.
I am working on .net 2008 but it is not debugging the website and wenever i run the project it gives error like "unable to connect to asp.net development server"

I tried by reinstalling it again. Problem is getting solved for 2 days but again same problem
I have tried almost all the solutions pl help.
Without debugging i cant work.

Komila Kalia
Software Developer
Reliance engineering Associates (P) Ltd.

iflux October 13th, 2008 11:28 PM

did u able to figure out the issue behind this?


Quote:

quote:Originally posted by Komila
 hello frnds,
I am facing a problem in my local pc.
I am working on .net 2008 but it is not debugging the website and wenever i run the project it gives error like "unable to connect to asp.net development server"

I tried by reinstalling it again. Problem is getting solved for 2 days but again same problem
I have tried almost all the solutions pl help.
Without debugging i cant work.

Komila Kalia
Software Developer
Reliance engineering Associates (P) Ltd.

shekhani October 25th, 2008 03:01 AM

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\WebD ev.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.




Amitbpit September 8th, 2009 03:21 PM

The best solution of unable to connect to asp.net development server is to just log on to http://www.amitbpit.blogspot.com in just two steps..thanx n enjoy.

manojphalatane July 15th, 2012 01:56 PM

i am not getting it by this solution,its showing error that the command is invalid.
 
Quote:

Originally Posted by shekhani (Post 229992)
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\WebD ev.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.

::::::::::::::::::::::::
i am not getting it by this solution,its showing error that the command is invalid.why this is so???

MaryStrobel April 15th, 2013 11:48 PM

that is really good informative piece of writing..


All times are GMT -4. The time now is 05:40 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.