[Original] ASP. NET error: Unable to connect to ASP. NET developement Server

Source: Internet
Author: User

Error Background:
When debugging a web project in vs2010, a prompt is displayed: Unable to connect to ASP. NET developement server. Then it will no longer work. You cannot open the browser to run the project and enterHttp: // localhost: Port, and cannot connect to the project. The final result is that the project cannot be debugged and the running effect cannot be seen.

Note: The Web server in vs2010 runs well and can be opened automatically and allocated ports.

Analysis Error:
I searched the internet over and over again, and tested N Methods: turning off the firewall and anti-virus software did not help, or even uninstalled the anti-virus software. The last re-installed vs, the cup is still reproduced.

Everyone knows that Microsoft is very annoying, especially useful things such as Vs and sqlserver, which basically cannot be detached.

In the end, there was no way to directly reinstall the system. I had to reload the system for the cup. The cup happened again and the error still exists. However, it is different from the previous one. In the past, all web projects failed to run. Now one of them can run and I was given a bit of toiletries.

Analysis can run and cannot run projects: So how to analyze? It should be analyzed from the csproj project of the web. The results are a little different. The final result of the web. csproj file of the project that can run is as follows:

<Projectextensions>
<Visualstudio>
<Flavorproperties guid = "{349c5851-65df-111089384-00065b846f21}">
<Webprojectproperties>
<Useiis> false </useiis>
<Autoassignport> true </autoassignport>
<Developmentserverport> 4504 </developmentserverport>
<Developmentservervpath>/</developmentservervpath>
<Iisurl> http: // localhost/Web </iisurl>
<Ntlmauthentication> false </ntlmauthentication>
<Usecustomserver> false </usecustomserver>
<Customserverurl>
</Customserverurl>
<Saveserversettingsinuserfile> false </saveserversettingsinuserfile>
</Webprojectproperties>
</Flavorproperties>
</Visualstudio>
</Projectextensions>

Overwrite the text of this section to the corresponding node of the project web. csproj file that cannot be run, and run the project OK again.

Solution:Add the preceding XMLCodeCopy and overwrite a project that cannot runCorresponding node of the web. csproj File

TIPS:
Some Microsoft software problems cannot be explained in many cases. Sometimes, even if the problem is solved, why ???
In short, the problem that has been plagued for a week has been solved!

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.