Visual Studio“无法建立连接,因为目标机器主动拒绝了它 127.0.0.1:8888" [英] Visual Studio "No connection could be made because target machine actively refused it 127.0.0.1:8888"

查看:100
本文介绍了Visual Studio“无法建立连接,因为目标机器主动拒绝了它 127.0.0.1:8888"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在本地机器上通过 Visual Studio 运行解决方案.我让网页出现并在页面上收到错误:无法连接到远程服务器无法建立连接,因为目标机器主动拒绝 127.0.0.1:8888

I tried to run a solution through Visual studio on my local machine. I get the webpage to appear and receive the error on the page: Unable to connect to the remote server No connection could be made because the target machine actively refused it 127.0.0.1:8888

加载的页面是 http://localhost:5009/ 并且当我尝试 localhost:8888 时,我得到无法显示此页面"

The page that loads is http://localhost:5009/ and when I try localhost:8888 I get "This page can't be displayed"

认为可能与防火墙有关,所以我打开了 8888 端口,但问题仍然存在

Thought it might be firewall related so I opened port 8888 but still the issue occurs

有人建议这可能是 Visual Studio 2013 隐藏的 IIS Express 问题,但我找不到它的配置.

someone suggested that this might be an IIS Express issue that Visual Studio 2013 hides but I couldn't find the config for it.

谢谢

推荐答案

我遇到了同样的问题.这是指向 Fiddler 的配置.我删除了 web.config 文件中的 fiddler 配置,问题解决了.

I had same problem. It was configuration to point to Fiddler. I removed the fiddler configuration in the web.config file and problem solved.

<defaultProxy enabled="true" useDefaultCredentials="true">
  <proxy autoDetect="false" bypassonlocal="false" proxyaddress="http://127.0.0.1:8888" usesystemdefault="false" />
</defaultProxy>

这篇关于Visual Studio“无法建立连接,因为目标机器主动拒绝了它 127.0.0.1:8888"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆