When debugging ASP. NET programs in the VS. NET 2005 Environment recently, the startup may fail. The specific error message is as follows:
"ASP. NET Development Server cannot start listening port: XXXX", and then "cannot connect to Localhost Web Server of Visual Studio" appears ".
Using the netstat command in the ms command line environment, the corresponding port was not found to be dedicated. Later, the project solution file (*. sln) file, which can be found in "C: /Documents and Settings/[your username folder]/My Documents/Visual Studio 2005/Projects/[your solution name] "is found in the path.
Open it with notepad or other text tools and find the VWDPort entry, which corresponds to debugging ASP. NET call port, you can change to an uncommon port, such as VWDPort = "9999", save and run ASP. NET program can be successfully debugged.
As for the cause of this problem, it is still unclear. I hope that the root cause will be known as soon as possible, and the above methods will be helpful to friends who have the same problem. :)