相关疑难解决方法(0)

尝试连接到运行IISExpress的localhost时如何解决ERR_CONNECTION_REFUSED - 错误502(无法从Visual Studio调试)?

这是在Windows Server 2008上运行的,几个月前就可以运行了.我刚刚再次使用这个服务器与VS一起开发.

这是用于提供一些测试站点的实时Web服务器.

这在运行Visual Studio时启动,然后启动我的项目以进行调试.

尝试localhost:xxxx在IISExpress 启动时启动任何站点(使用配置中的实际端口#来访问不同的站点):

This webpage is not available

ERR_CONNECTION_REFUSED
Run Code Online (Sandbox Code Playgroud)

我已经在这几天了,因为我已经读过其他人有过类似的问题,尝试过我读过的大部分内容,包括将managedruntimeversion.v4.0 更改为"v4.0.30319".我从来没有必须在此之前执行此操作)并禁用日志记录模块(此处的所有建议).

我的hosts文件中只有两个条目指向内部服务器IP地址.没有localhost相关的IP或参考.

我已经完成了重新安装IIS Express和Visual Studio 2013.我还创建了一个全新的WebApplication站点来尝试解决这个问题(简单而没有其他复杂的绑定).

当我旋转Fiddler时,我在页面上看到以下内容:

[Fiddler] The socket connection to localhost failed. 
ErrorCode: 10061. 
No connection could be made because the target machine actively refused it 127.0.0.1:23162
Run Code Online (Sandbox Code Playgroud)

提琴手捕获

我已经从IE的LAN连接部分删除了所有代理设置,之前我在VS中获得了一个red-x弹出窗口,表明IISExpress无法启动.

这不是SSL与非SSL的问题.

我安装了TFS服务器 - 卸载了,以防有一些奇怪的绑定干扰.

我尝试多次删除IISExpress配置/设置文件夹.

当前的applicationhost.config包含:

<site name="WebApplication1" id="4">
                <application path="/" applicationPool="Clr4IntegratedAppPool">
                    <virtualDirectory path="/" physicalPath="C:\TFS-WorkRepository\Sandbox\WebApplication1\WebApplication1" …
Run Code Online (Sandbox Code Playgroud)

localhost visual-studio iis-express

84
推荐指数
7
解决办法
36万
查看次数

Visual Studio中的Google Chrome调试器“无法访问站点,本地主机拒绝连接”

我目前正在尝试在Google Chrome浏览器中打开在Visual Studio中编写的html文件,并在Visual Studio中运行Google Chrome浏览器调试扩展

以下是.json文件,我正在使用第一个配置

 {
"version": "0.2.0",
"configurations": [
    {
        "name": "Launch Chrome against localhost, with sourcemaps",
        "type": "chrome",
        "request": "launch",
        "url": "http://localhost:8080",
        "sourceMaps": true,
        "webRoot": "${workspaceRoot}"
    },
    {
        "name": "Attach to Chrome, with sourcemaps",
        "type": "chrome",
        "request": "attach",
        "port": 9222,
        "sourceMaps": true,
        "webRoot": "${workspaceRoot}"
    }
]
Run Code Online (Sandbox Code Playgroud)

但是当它在谷歌浏览器中打开时我收到错误

无法访问该网站

本地主机拒绝连接。

visual-studio google-chrome-extension

6
推荐指数
4
解决办法
2万
查看次数