When you use vs2008 to develop a website project, press F5 for debugging and the page cannot be displayed,
The following are two common symptoms and solutions:
Symptom 1:
The port number displayed in the IE Address Bar and the "ASP.. NET development server, and change the port number in the IE address bar to "ASP. net Development Server "indicates the port number, and the result page is displayed.
Solution: reference the original article as follows: "Is NOD32 3.0 or a later version installed? Or what other firewall software? If you are installing NOD32 3.0, follow these steps: the supervisor should be in it, double-click the check box (equivalent to removing the selected status), and confirm to exit and stop all running ASP.. NET development server, open and re-compile your web program in ".
Symptom 2:
The port number displayed in the IE address bar is the same as the port "ASP. NET development server" in the lower right corner of the desktop taskbar, And the localhost In the IE address bar is changed to the local IP address 127.0.0.1. The result page is displayed.
Solution:
1. Check the hosts file in the c: \ windows \ system32 \ drivers \ etc directory and confirm that there are 127.0.0.1 localhost lines, which indicates that the hosts configuration should be correct.
2. It may be that the XP hosts file does not work. Follow the common method on the Internet to modify the Registry content: change the "databasepath" type in HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Servic es \ Tcpip \ Parameters from "REG_SZ" to "reg_expand_sz ".
3,If it is a vista or Server 2008 system, it is most likely caused-- IPv6. Open the hosts file and you will find the two lines of code
127.0.0.1 localhost
: 1 localhost
Remove the second line to solve the problem.
Also: Solve the Problem of inconsistent debugging ports:
Problem description
Click "debug" in vs2008. The port number of ASP. NET development server is 2 larger than that of the browser opened during debugging. Therefore, you must manually change the port number of the browser for each debugging.
Solution 1
Source: http://msdn.microsoft.com/zh-cn/library/ms178109.aspx
Specify Port 1 for ASP. NET development server. In Solution Explorer, click the name of the application. 2. In the properties pane, click the down arrow next to "use dynamic port" and select "false" from the drop-down list ". This allows you to edit the "port number" attribute. 3. In the properties pane, click the text box next to the port number and type A port number. 4. Click outside the properties pane. This operation saves the property settings. Whenever you run a file system website in Visual Web Developer, ASP. NET development server listens on the specified port.
Solution 2
Source: http://msdn.microsoft.com/zh-cn/library/ms178108.aspx
Specify the Web server for the website. 1. In solution Resource Manager, right-click the website name and click "properties page ". 2. In the "properties" dialog box, click the "launch options" tab. 3. Under "server", click "use custom server ". 4. In the "base URL" box, type the URL that visual web developer should start when running the current website.
Solution 3
After checking, this problem is caused by anti-virus software. I use NOD32 (ESS or EAV) and can disable the related functions in NOD32 to solve this problem.
1. Open the main interface of NOD32 and switch to advanced mode.
2. Click "Advanced Settings" in "Settings ".
3. Choose "Web access protection"> "HTTP" in the tree menu and disable "enable HTTP check.