views:

2694

answers:

5

I have VS 2005 and VS 2008 installed side by side. It is interesting that I can use development server under VS 2005. But when I tried in VS 2008, it gave me an error "Unable to connect to the ASP.NET Development Server".

Any idea?

Thanks!

+2  A: 

Try checking the port configuration of VS 2008? If it's not set to automatic it may be using a port that is in use?
If it is set to auto-assign then try specifying a port and picking one which you know to be free.

Adam Naylor
Thank you, Adam. But how can I do that. I cannot find it from project - > Property.
Liang Wu
its under the web tab of the project properties
Adam Naylor
not sure if we have the same version. :=) Under Web site project Property pages, I only see Reference, Build, Accessibility, Start Options and Msbuild Options. I guess it is the Start options you mean right? I cannot change option, unless I need to use custom server, (IIS)? Thanks again!
Liang Wu
Actually my VS 2005 work fine under development machine.
Liang Wu
A: 

If your project is a website and not a web project then you can set the port properties from the property window.
Select the project from the solution explorer then press (ctrl+w then p) to bring up the property window.

HTH

Adam Naylor
A: 

Finally I got it work by reinstalling VS 2008.

Liang Wu
A: 

ive reiinstalled it five tyms but it didn't solve the problem about connection. I hope you can give detailed steps to enable the connection.........

Well, it is really easy. Just put VS 2008 DVD, then click install. I guess you might either get a different source, or do a remove then a reinstall.
Liang Wu
A: 

You can edit the port developmentserver will use directly in your solution file. Simply edit the VWDPort property in the ProjectSection of the web project entry. First call netstat in your command line to chek if the current port is already in use. That did it for me.

Chris