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 matchWebThe Development Server establishes a connection. "At first, I only thought the configuration was wrong! Check the configuration file and modify the properties.
check online! Enter " vs2010 cannot connect to Web Development Server", there is no real solution to the problem. Some say IIS problems, I don't feel how to use them, so I haven't installed them all the time IIS . However, I installed it on the Internet to solve the problem. win7 how to configure IIS , you have 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 way.Vs2010Fixed the problem 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 putVs2010Uninstall, It is waiting, then installing, and waiting, finally installed. Run the prompt that some components needVs2010Patch packages can be run (for example:WP7Development tools), and began to patch again, it is a long wait, really wait, 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!
No way. You can find information on the Internet and enter "cannot connect" in Baidu.Vs2010 WebThere are several solutions for the development server, that is, the firewall problem, the firewall is shut down, the problem is solved, the project can be opened normally, but there is no better way. I also found an article in the blog Garden:
Unable to connect to the titleVisual StudioOfLocalhost WebServer/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:
TitleRecent good back,Unable to connectVisual StudioOfLocalhost WebThe server is so awesome!"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:
These days,VSAndSQLIt cannot be started. After it is finished today, another problem occurs: it cannot be connected.Visual StudioOfLocalhost WebThe server is so awesome!
Originally writeBookstoreAnd the controls are also messy and won't be used.
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,
I need to open the computer and check it. The following figure appears::
People who want to die will not have at all. These things still have problems.
No way, I don't want to restore it or reinstall it. I just need to find the most awesome one on the Internet."Person".
(1) Method:
:>>> Step 1
Tools]->[External tools]->Press add to enter:
1)Title: Web server port: 8080
2)Command: C: "Windows" Microsoft. NET "Framework" v2.0.50727 "webdev. webserver. exe
3)Parameters:/Port: 8080/path: $ (projectdir)
4)[Use Output Window] selected
>>> Step 2
ClickStep 1The"Web server port: 8080"Option to activate the customWeb ServerServer,After activation, a"Asp.net Development Server"Icon.
>>> Step 3
Right-click the website and choose properties page]->[Startup options]->[Use a custom server ],URLInputHttp: // localhost: 8080
>>> 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.
However,2)Command: C: "Windows" Microsoft. NET "Framework" v2.0.50727 "webdev. webserver. exe"And Click Browse to find the corresponding file!
But you know it is calledWebserver. exeProgram, enter a path. InCThe disk cannot be found!
Check Baidu againWebdev. webserver. exeThe file path cannot be found, and the path is also reversed. You can still find the path based on the original path.I went online and checked out an article:
Title:Visual StudioBuilt-inWeb ServerTo deployAsp.netSimple Server Running"
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:
Want to run it temporarilyAsp.netProgram,IISGenerally, the system is disabled or not installed because of resource consumption.IIS, You can useVisual StudioSelf-containedWeb Server(), Used as a lightweight server.
VersionsVisual StudioBuilt-in Development EnvironmentAsp.netThe server path 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 aboveWebdev. WebserverThe help dialog box is displayed.
Run the following command line:Webdev. webserver. EXE /?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"
you need to temporarily open a Web when you are visiting a website, " Start "-> " RUN " enter the following command:
webdev. webserver. EXE/port: 80/path: "C: \ mysite"/vpath: "/
Originally Visual StudioBuilt-inWeb ServerTo deployAsp.netSimple ServerThis is my vs2010Path, which of the original text should beVs2005Path,Return to the project, Click Browse, and find the vs2010 path. 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 this path:C: \ Program Files \ common files \ microsoft shared \ devserver \ 10.0File:
OriginalWebdev. webserver20.exeThis 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. Restart and repair the machine at the beginning.Vs2010,The uninstallation and re-installation were not correct, and the root cause of the problem was not found. It is much better to use the Internet.
2, Understanding the problem in place, find a solution will also hurry up!
The solution to this problem I use Baidu is an example.
Input for the first time:"Vs2010Cannot matchWebEstablish a connection with the Development Server"
Result:
Click the possible solution and there is still no desired result.
Second input: Unable to connectVs2010webDevelopment Server
There are several options, but most of them are firewall closures.
Third time:Visual StudioUnable to connectVisual StudioDevelopment Server
There are more methods.
The fourth time: Search for the title of the clicked article "cannot be connected ."Visual StudioOfLocalhost WebService"
In this way, we can find a better solution.
Another article about ModificationIELink:Http://support.microsoft.com/kb/886388/zh-cn
It's good to use Baidu and Google for search,