Cannot connect to Visual Studio development server

Source: Internet
Author: User
About the problem that Visual Studio cannot connect to the localhost Web server of Visual Studio

Address: http://www.cnblogs.com/SanMaoSpace/archive/2011/12/25/2301226.html

Today, I encountered a problem in my website project and had a hard time! Think about the possibility that some friends may encounter the same problem.ArticleShare it!

Recently, I have been working on a small website project and it has never been a big problem. This morning, when I opened the same project, I executed debugging, but an error I have never seen before! The prompt "cannot establish a connection with the Web Development Server" is displayed. At first, I just thought the configuration was wrong! Check the configuration file and modify the properties.

Check it online! Enter "vs2010 cannot connect to the Web Development Server" on Baidu, and there is no solution to the problem. Some of them say that IIS is a problem. I feel that I have never installed IIS. I installed it on my own to solve the problem. I searched the internet for how to configure IIS under win7, So I installed it and set it! But the problem persists.

Check if it is a project problem. If it is changed to another project, the error message is the same! Check whether the machine can be restarted. No, I fixed vs2010 and wrapped the patch. Everyone knows how to install this thing. Please wait! No way. Wait! Restart, start, debugProgram, Or not. What's going on? Simply uninstall vs2010 directly, and wait again, and then install it again, and wait again. Finally, the installation is complete. Running prompts that some components can be run only through the vs2010 patch package (for example, WP7 Development Tool). It is a long wait and I have no temper. Finally, it's time to unmount the package and install it again! After running the project, I still reported the same error message. I am very depressed!

There is no way to do it. I tried to find information on the Internet and entered "unable to connect to the vs2010 web development server" on Baidu. There are several solutions: Firewall problems, firewall shutdown, the problem is solved, and the project can be opened normally, but there is no better solution. I also found an article in the blog Garden:

Title: unable to connect to the localhost Web server of Visual Studio/unable to connect to Visual Studio's localhost Web Server

Link: http://www.cnblogs.com/Jinglecat/archive/2006/04/18/377752.html

It seems that someone has encountered such a problem. After reading the comments, the solution is to shut down the firewall. Other articles opened here are about firewall problems. Just shut down. Check again to see if there is any better way.

By accident, I clicked an article:

Title: Why can't I connect to the localhost Web server of Visual Studio? There are two methods provided, that is, firewall does not need to be disabled.

Link: http://hi.baidu.com/qq34184145/blog/item/c842c0fbb62ff11a6c22eb75.html

The original article is as follows:

After a few days, Vs and SQL cannot be started. Now we have finished it. Another problem is that we cannot connect to the localhost Web server of Visual Studio!

It was originally written to the bookstore, and the controls were not used properly.

I wrote a registration page and a logon page to query the page, and then connected to the database.

Other headaches caused by the design of the master, so I gave up and shut down my computer,

Run the computer again and check it. The following figure is displayed:

People who want to die will not have at all. These things still have problems.

No way. If you don't want to restore it or reinstall it, you can find the most awesome "person" on the Internet ".

(1) method:

: >>> Step 1

[Tools]-> [External tools]-> press [add] And Enter:

1) Title: Web server port: 8080

2) command: C: "Windows" Microsoft. NET "Framework" v2.0.50727 "webdev. webserver. exe

3) parameter:/port: 8080/path: $ (projectdir)

4) [Use Output Window] selected

>>> Step 2

Click the "Web server port: 8080" option that appears in the "Tools" menu after Step 1 to activate the custom web server, after activation, an "Asp.net Development Server" icon appears in the lower right corner of the window.

>>> Step 3

Right-click the website and choose Properties> Start Options> use custom server. Enter http: // localhost: 8080 in the base URL.

>>> Step 4

Remember to change the running port on the IIS of the website or project to 8080: IIS -- find your project website and right-click and change the port to 8080.

(2) method;

Disable the firewall.

I am a ghost of the firewall!

Run again:

**************************************** **************************************** *********************************

Method 1: do not close the firewall and set it.

But when the "2) command: C:" Windows "Microsoft. NET" Framework "v2.0.50727" webdev. webserver. EXE "is stuck, Click Browse to find the corresponding file!

However, the webserver. exe program is called and a path is entered. Cannot find disk C!

Check the path of the file where Baidu webdev. webserver. EXE is located. If no path is found, search for the path by the original path. I went online and checked out an article:

Title: deploying Asp.net simple server running with Visual Studio Web Server

Link: http://www.zerow.info/visual-studio-comes-with-simple-web-server-to-deploy-the-server-is-running-asp-net/

The original article is as follows:

If you want to temporarily run the Asp.net program, but IIS is usually disabled because it consumes resources or does not install IIS, you can use the self-contained Web Server () in Visual Studio as a lightweight server.
The path of the Asp.net server that comes with the Visual Studio development environment of each version is as follows:
Vs2005 % SystemRoot % \ Microsoft. NET \ framework \ v2.0.50727 \ webdev. webserver. exe
Vs2008 c: \ Program Files \ common files \ microsoft shared \ devserver \ 9.0 \ webdev. webserver. exe
Vs2010 c: \ Program Files \ common files \ microsoft shared \ devserver \ 10.0 \ webdev. webserver20.exe
Help:
Start the webdev. webserver program above and a help dialog box will pop up.
Run webdev. webserver. EXE/? In the command line /? You can also see the help of this command, which is very simple. There are three parameters:
/Port: Port
/Path: "physical path"
/Vpath: "virtual path"

When you need to temporarily Open a Web site, enter the following command in "start"> "run:
Webdev. webserver. EXE/port: 80/path: "C: \ mysite"/vpath :"/

It turns out that Visual Studio has its own web server to deploy the Asp.net simple server. My path is vs2010. The original path should be vs2005. Go back to the project and Click Browse, find the path in vs2010 and the setting is complete. After debugging, I am glad to hear that! Finally solved the problem. I think that you may encounter such problems when using a dish like ours. Write an article and share it with me!

Look back at the files in the path c: \ Program Files \ common files \ microsoft shared \ devserver \ 10.0:

The original webdev. webserver20.exe program path is here!

Looking back, this question seems to be a problem!

Think of two points:

1. Do not try to solve the problem by yourself. It is estimated that it will be difficult to find a solution to the problem, but it cannot be solved. It may be the wrong direction of the problem. Learn to ask others, or use the Internet to make it more efficient to solve problems.

Some of my friends who have encountered this problem have been overwhelmed by it for several days. Fortunately, I have solved it now. At first, I restarted the machine, fixed vs2010, and then uninstalled and reinstalled the machine. It was wrong and I did not find the root cause of the problem. It is much better to use the Internet.

2. Understand the problem and find a solution quickly!

The solution to this problem I use Baidu is an example.

Input for the first time: "vs2010 cannot establish a connection with the Web Development Server"

Result:

Click the possible solution and there is still no desired result.

Second input: unable to connect to the vs2010web Development Server

There are several options, but most of them are firewall closures.

Third time: Visual Studio cannot connect to the Visual Studio development server

There are more methods.

Fourth: Search for the title of the clicked article "cannot connect to the localhost Web Service of Visual Studio"

In this way, we can find a better solution.

There's also a link to modifying ie settings: http://support.microsoft.com/kb/886388/zh-cn

It's good to use Baidu and Google for search,

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.