gpt4 book ai didi

visual-studio-2010 - 本地主机无法在 Chrome 和 Firefox 中运行

转载 作者:行者123 更新时间:2023-12-03 07:36:14 24 4
gpt4 key购买 nike

我正在使用 Visual Studio 2010(MVC3 Razor) 和 Windows 7 做一个 Web 项目。

我的默认浏览器是IE。当我运行该项目时,网站与 url 完美配合

http://localhost:49824/

当我复制相同的网址并尝试在 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.

我已经重建了解决方案并将 URL 添加到允许的站点。但问题仍然存在。我应该如何解决这个问题?

最佳答案

终于我找到了解决方案......这很简单

  1. 转到 LAN 设置(在 Chrome 中:工具 -> 选项 -> 后台 -> 更改代理设置 -> LAN 设置)

  2. 将会有一个“绕过本地地址的代理服务器”复选框

  3. 勾选复选框。

完成!

在 Mac/Apple 上:Chrome 使用系统偏好设置来排除本地主机:

  1. 转至系统偏好设置 -> 网络 -> 高级 -> 代理设置

  2. 在底部添加“localhost”,其中显示:“忽略这些主机和域的代理设置”(异常(exception)情况以逗号分隔)

关于visual-studio-2010 - 本地主机无法在 Chrome 和 Firefox 中运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7227845/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com