san*_*san 37 localhost visual-studio-2010 razor asp.net-mvc-3
我正在使用visual studio 2010(MVC3 Razor)和Windows 7进行Web项目.
我的默认浏览器是IE.当我运行该项目时,网站的工作与网址完全一致
当我复制相同的网址并尝试在Chrome或Firefox中运行网站时,它会显示以下错误.
错误
The requested URL could not be retrieved
The following error was encountered while trying to retrieve the URL: http://localhost:49824/
Connection to 127.0.0.1 failed.
The system returned: (111) Connection refused
The remote host or network may be down. Please try the request again.
Your cache administrator is webmaster.
Run Code Online (Sandbox Code Playgroud)
我重建了解决方案并将网址添加到允许的网站.但问题仍然存在.我该如何解决这个问题?
san*_*san 73
最后我找到了解决方案......这很容易
转到局域网设置(在Chrome中:工具 - >选项 - >引擎盖下 - >更改代理设置 - >局域网设置)
将有一个"为本地地址绕过代理服务器"的复选框
勾选复选框.
完成!
在Mac/Apple上:Chrome使用系统首选项进行本地主机排除:
转到系统偏好设置 - >网络 - >高级 - >代理设置
在底部添加'localhost',其中显示:'忽略这些主机和域的代理设置'(异常以逗号分隔)
Mr_*_*een 15
对于所有浏览器,
internet Options(或Internet属性)connections标签LAN SettingsUse proxy server for your LANBypass proxy server for your local address(不要更改端口号)Ok现在你很高兴.:)
| 归档时间: |
|
| 查看次数: |
134498 次 |
| 最近记录: |