When debugging asp.net2005/2008, the port is not correct to solve three sets of solutions _ practical skills

Source: Internet
Author: User

After "debugging" in VS2008. The port asp.net Development server is 2 larger than the port on the browser that is open when you debug, causing you to manually change the browser's port number each time you need to debug. The following figure:

Workaround One : Specify ports for asp.net Development Server

1. In Solution Explorer, click the name of the application.

2, in the Properties pane, click the down arrow next to use dynamic port, and then select False from the Drop-down list.
This allows editing of the port number attribute.

3, in the Properties pane, click the text box next to port number, and then type a port number.

4, click outside the Properties pane. This action saves the property settings.

Whenever you run a file system Web site in the Visual Web Developer, asp.net Development Server listens on the specified port.

workaround two : Specify a Web server for your Web site

1. In Solution Explorer, to specify a Web server for which Web site, right-click the name of the Web site, and then click Property Pages.

2, in the Property Pages dialog box, click the Startup Options tab.

3, under Server, click Use Custom Server.

4, in the Base URL box, type the URL that the Visual Web Developer should start when it runs the current Web site.

solution three : After checking, this problem is caused by antivirus software, I use NOD32 (ESS or EAV), can turn off the related function in NOD32 to solve this problem.

1, open the main interface of the NOD32, and switch to advanced mode.

2, click "Settings" in the Menu "Advanced settings."

3, select "Web Access Protection-> http" on the tree menu, turn "Enable HTTP Check" off.

The above three sets of scenarios, want to have a set to solve debugging asp.net2005/2008 when the port is not correct problem.

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.