asp.net问题 很急
如图
我VS2010按F5调试的时候网页一直处于这种状态,而且打开别的网页也不行
(如右边的百度也一直处于那种等待状态)
如果关了调试网页 百度的才可以打开
检查过端口号了 是一致的,如果把localhost改为127.0.0.1可以显示
但只能显示,改代码后打开的网页不会更新
如图
我VS2010按F5调试的时候网页一直处于这种状态,而且打开别的网页也不行
(如右边的百度也一直处于那种等待状态)
如果关了调试网页 百度的才可以打开
检查过端口号了 是一致的,如果把localhost改为127.0.0.1可以显示
但只能显示,改代码后打开的网页不会更新
答案:这个问题我遇到过纠结了我好几天,网上搜了一大堆资料都没找到解决方法
也重装系统过,还是没用。然后问了一朋友解决了
你找到你的host文件在C:\WINDOWS\system32\drivers\etc
在用记事本打开,将以下复制覆盖就行了
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 localhost
localhost 127.0.0.1
调试状态下,你如果打开相应的页面就会走到你的断点处,此时页面就会等待调试,调试结束后就可以正常显示,2.页面一般都开启了缓存功能(提高页面访问速度),你所作更改后并不能立即刷新更新页面内容,你可以先把浏览器缓存清除再刷新到安装模式把这两个文件移到其他地方试一下
进入安全模式,开机按F8
上一个:asp..net 字符串转换问题
下一个:asp.net实现复制到剪贴板!