【问题标题】:Local host connecting error本地主机连接错误
【发布时间】:2017-03-20 09:27:40
【问题描述】:

我想使用 IDE Visual Studio 2015 在 chrome 中运行 asp.net 应用程序。(我们通过在另一台 PC 上使用 Visual Studio 2017 创建它)但是当我尝试使用 google chrome 运行它时,它说,

" 无法访问此站点 localhost 拒绝连接。 在 Google 上搜索 localhost 51383 FrontPage ERR_CONNECTION_REFUSED "

谁能帮我解决这个问题?

three

four

【问题讨论】:

  • 您是否在 Google 上搜索过该错误消息?
  • 试试这个:在解决方案资源管理器中,转到 sln 文件(或者我想是项目文件),右键单击它并打开属性。现在,尝试在此处更改端口号(如果这不起作用,您可能还需要更改其他一些设置)并尝试再次运行它..
  • 非常感谢您的帮助!!!但它不起作用:(

标签: c# html css asp.net


【解决方案1】:

检查您的 asp.net 服务器(开发服务器)端口号?

In Solution Explorer, click the name of the site.
In the Project menu, click Properties.
Click the Web tab.
Check the port number there.
If it is different, Click Specific port and enter a port number.
Now use the port number and it should work.

【讨论】:

  • 非常感谢您帮助我。但这些端口号是相同的
  • 能否将端口号更改为新的端口号,保存并重建解决方案?
  • 我做到了“无法访问此站点 localhost 拒绝连接。在 Google 中搜索 localhost 54383 FrontPage ERR_CONNECTION_REFUSED”
  • 你能附上所有端口号的截图吗? (项目属性、asp.net 开发者服务器/IIS express 和浏览器)
  • 当然可以。但我不知道如何附加它们
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-01-02
  • 1970-01-01
  • 1970-01-01
  • 2017-12-24
  • 2010-09-29
  • 1970-01-01
相关资源
最近更新 更多